get firt few rows of data from a dataframe in R code example Example: dtidyverser get first x rows # slice() dt <- dt %>% slice(1:4)