powered by
split_data split the data into a training_set and a testing_set based on the training_percentage.
split_data
training_percentage
split_data(dataset, training_percentage)
A data frame of the dataset.
A number between 0 and 100 indicating the percertage of the training dataset.
A list with two data frame: training_set and testing_set.
# NOT RUN { adult_data <- split_data(adult[1:100,], 70) # }
Run the code above in your browser using DataLab