Learn R Programming

radiant.data (version 0.6.0)

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)

Arguments

n
Number (or fraction) of observations to label as training
nr
Number of rows in the dataset

Value

0/1 variables for filtering

Examples

Run this code
make_train(.5, 10)

Run the code above in your browser using DataLab