Assigns a train/test indicator to a combined dataset
add_data_type(
data_train = NULL,
data_test = NULL,
data_all = NULL,
test_size = 0.3,
seed = 42
)A data frame with a data_type factor column.
A data frame of training observations (or NULL).
A data frame of testing observations (or NULL).
A data frame of all observations (or NULL).
Numeric in (0,1). Proportion for testing (default 0.3).
Integer. Random seed for splitting (default 42).