random_panel_selection {sms} | R Documentation |
Select n random rows from a dataframe
random_panel_selection(indf, n)
indf |
The initial dataframe from wich a selection will be made. |
n |
The number of random rows |
Select n random rows from a dataframe
a selection of rows as a dataframe
Dimitris Kavroudakis dimitris123@gmail.com
library(sms)
data(survey) #load the data
data(census)
some.individuals=random_panel_selection(survey,4)
print(some.individuals) # Print the selection of individuals