random_panel_selection {sms}R Documentation

random_panel_selection

Description

Select n random rows from a dataframe

Usage

random_panel_selection(indf, n)

Arguments

indf

The initial dataframe from wich a selection will be made.

n

The number of random rows

Details

Select n random rows from a dataframe

Value

a selection of rows as a dataframe

Author(s)

Dimitris Kavroudakis dimitris123@gmail.com

Examples

library(sms)
data(survey) #load the data
data(census)
    
some.individuals=random_panel_selection(survey,4)
print(some.individuals)     # Print the selection of individuals

[Package sms version 2.3.1 Index]