Hi,
There are different functions to select or extract rows from the data frame using dplyr functions.
1. Filter( )
filter(condition1, . . .)
2. Sample_frac( ) - returns fraction part from the dataframe.
sample_frac(table,fraction,replace = TRUE)
3. sample_n( ) - returns n rows from dataframe.
sample_n(table,n,replace = TRUE)
4. slice( ) - select range of rows using position.
slicer(tbl,m:n)
5. top_n( ) - returns top n rows.
top_n(tbl,n)