split_data: Split the data into a training_set and a testing_set.

Description Usage Arguments Value Examples

View source: R/split_data.R

Description

split_data split the data into a training_set and a testing_set based on the training_percentage.

Usage

1
split_data(dataset, training_percentage)

Arguments

dataset

A data frame of the dataset.

training_percentage

A number between 0 and 100 indicating the percertage of the training dataset.

Value

A list with two data frame: training_set and testing_set.

Examples

1
adult_data <- split_data(adult[1:100,], 70)

sdglinkage documentation built on April 27, 2020, 5:09 p.m.