Description Usage Arguments Value Examples
This function does the heavy lifting for the makePackets function. It builds all the individual files from the larger data frame.
1 | makeIndvFiles(file, n, form, j, rows, numberFile, chosenDir)
|
file, |
a data frame. The data frame that needs converting into many files |
n, |
an integer. The number of mini data frames you'd like to make |
form, |
a string. Can take either '.rds' for R data files or '.csv' for ,csv files. Will determine the format of the smaller data frames. |
j, |
the number of rows in the big data frame. |
rows, |
the number of rows in each smaller data frame. |
numberFile, |
the file number. The smaller data frames are built sequentially so they can be rebuilt into one data frame in the same order they came in. |
chosenDir, |
a string. Where would you like to put all these small data frames? Built by makePackets(). |
doesn't return anything.
1 | makeIndvFiles(file, 10, '.csv', 1000, 101, 2, './data')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.