sample_long: sample from panel or longitutional data, where you'd like all...

Description Usage Arguments Value Examples

View source: R/sample_long.R

Description

not sure about this right here

Usage

1
sample_long(datx, idvar, n = 5)

Arguments

datx

data.table or data.frame

idvar

variable that identifies a unit across observations

n

number of units (*not* number of observations)

Value

This function returns a data.table with samples from a larger data.table

Examples

1
2
3
4
## Not run: 
function(arg1, arg2 etc)

## End(Not run)

emilBeBri/dttools documentation built on April 21, 2021, 5:44 a.m.