split_df.Rd
Randomly splits a data frame into multiple subsets of approximately equal size. Useful for creating training/test splits or cross-validation folds.
split_df(df, n = 2)
A data frame to be split.
Integer specifying the number of subsets to split the data frame into. Default is 2.
A list of data frames, with each element containing one subset.