fx_sample | R Documentation |
Break up single data frame into train and test datasets.
fx_sample(df0, partition)
df0 |
data frame including all observations (data frame). |
partition |
list object containing train and test group assignment. |
A list of length three,containing subsets of original data frame and model parameters
df.train: data frame containing only rows assigned to train set
df.test: data frame containing only rows assigned to test set
parameters: list of relevant specified parameters
"sample.type": cross-validation sampling procedure
"train.rows": row indices assigned to train set
"test.rows": row indices assigned to test set
"data.frame": data frame specified (CURRENTLY NOT CORRECTLY SPECIFIED)
"nresample": number of resamples
"balance.col": column to use for balancing groups
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.