random_panel_selection: random_panel_selection

Description Usage Arguments Details Value Author(s) Examples

View source: R/sms.R

Description

Select n random rows from a dataframe

Usage

1

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

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

sms documentation built on May 1, 2019, 8:18 p.m.