nOfEach: Sampler for the first observation of each unique value for a...

Description Usage Arguments

Description

oneOfEach identifies the unique values from a particular column of a data

Usage

1
nOfEach(dt, column, n)

Arguments

dt:

The data.table from which to sample.

column:

Name of the column of interest.

n:

Number of first-occurring observation(s) to grab for each unique value of column.


vreuter/SwissR documentation built on May 14, 2019, 11:29 a.m.