split_data.Rd
Split a dataset
split_data(y, p = 0.5, seed = 123, type_split = c("stratify", "sequential"))
A vector of labels
A proportion of the dataset to split
An integer to set the seed
A character string specifying the type of split
A vector of indices