chunkr | R Documentation |
splits a dataset into a specified number of chunks so that they can be processed sequentially
chunkr(mydf, nchunks = 1L, ...)
mydf |
the dataframe to be used. |
nchunks |
an integer target number of chunks in which the dataframe is to be split (1 <= nchunks <= N) where N is the number of units. |
... |
a list of one or more variables that defines the units which should not be split apart. |
The splitting is done in terms of units defined by the combinations of the levels of one or more variables. Any output files will be produced in .rds format.
mydf <- mtcars nchunks <- chunkr(mydf, nchunks = 100L, "gear") nchunks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.