make_train: Generate a variable used to selected a training sample

Description Usage Arguments Value Examples

View source: R/transform.R

Description

Generate a variable used to selected a training sample

Usage

1
make_train(n = 0.7, nr = 100, seed = 1234)

Arguments

n

Number (or fraction) of observations to label as training

nr

Number of rows in the dataset

seed

Random seed

Value

0/1 variables for filtering

Examples

1
make_train(.5, 10)

radiant-rstats/radiant.data documentation built on Nov. 13, 2018, 6:57 a.m.