create_data_partition: Create Data Partition

Description Usage Arguments Value Author(s) Examples

View source: R/create_data_partition.R

Description

Split DataFrame into Train-Test Datasets.

Usage

1

Arguments

data

Dataframe that will be used.

p_train

Percentage of data that will be used as train

Value

Returns a list of length 2 with the train and the test datasets

Author(s)

Alberto Almuiña

Examples

1
2
3
4
## Not run: 
c(train, test) %<-% create_data_partition(iris, 0.7)

## End(Not run)

AlbertoAlmuinha/LogisticRegression documentation built on Jan. 5, 2020, 9:18 a.m.