dplyr ordre by and get the 10 top code example Example: dtidyverser get first x rows # slice() dt <- dt %>% slice(1:4)