NAME
n-split.r - Splitting CSV File Randomly in to n file(s) R script
SYNOPSIS
n-split.r
AVAILABILITY
Git repository (public)
DESCRIPTION
This script splits a CSV file (Cases in rows and variables in columns) randomly into user defined number of files
EXAMPLES
If you run the script, it will ask you to provide the following three information:
Enter the number of files to split into:
Enter the random seed to use (press ENTER to use a system time stamp for the seed):
Choose a source CSV file:
You will get the split output and log files in the directory where the R source code is located.
FILES
Output file names ends with -#.csv where # represents the index of the file. Log file ends with -log.csv and it provides how each case was assigned to the random group. Output and log files are written in the directory where the R source code is located.
SEE ALSO
N-fold cross validation, goodness of fit