Per beethoven resampling strategy, this function selects
the predefined number of rows from the input data table and
saves the row index in .rowindex field.
Usage
make_subdata(data, n = NULL, p = 0.3)
Arguments
- data
An object that inherits data.frame.
- n
The number of rows to be sampled.
- p
The proportion of rows to be used. Default is 0.3.
Value
The row index of the original data. The name of the original
data object is stored in attribute "object_origin".