Learn R Programming

radiant.data (version 0.8.1)

make_train: Generate a variable used to selected a training sample

Description

Generate a variable used to selected a training sample

Usage

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

Run this code
# NOT RUN {
make_train(.5, 10)

# }

Run the code above in your browser using DataLab