Takes in a csv file from the current R project folder in quotes (ex: "file_name.csv"), the train set percentage, and the test set percentage. The function reads the csv file and creates a train and test set from the specified percentages. The output is a list where the first index returns the training set and the second index refers to the testing set. Example of naming train and test set after running: data <- train_test("train_copy.csv", 0.7, 0.3), train <- data, test <- data.
|Author||c(person("Abigail", "Radey", email = "[email protected]", role = c("aut", "cre")),|
|Maintainer||The package maintainer <[email protected]>|
|Package repository||View on GitHub|
Install the latest version of this package by entering the following in R:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.