Description Usage Arguments Value Author(s) Examples
View source: R/create_data_partition.R
Split DataFrame into Train-Test Datasets.
1 | create_data_partition(data, p_train)
|
data |
Dataframe that will be used. |
p_train |
Percentage of data that will be used as train |
Returns a list of length 2 with the train and the test datasets
Alberto Almuiña
1 2 3 4 | ## Not run:
c(train, test) %<-% create_data_partition(iris, 0.7)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.