generate_training_row_indices: Split into train and test 1/2: training (in-sample) indices

Description Usage Arguments Examples

View source: R/random_rotation.R

Description

Create a random split of indices with proportion ptrain in the training set. Also see: generate_testing_row_indices(n, training_rows)

Usage

1

Arguments

n

numer of data points in total (training + testing)

ptrain

percentage of rows in the training set (fraction)

Examples

1
2

randomrotation/random.rotation documentation built on Dec. 31, 2020, 2:15 a.m.