fileplyr
plyr for CSV files
Perform chunkwise processing or split-apply-combine on data in a delimited file(example: CSV) across multiple cores of a single machine with low memory footprint. These functions are a convenient wrapper over the versatile package 'datadr'.
Load fileplyr
package
library("fileplyr")
write.table(mtcars, "mtcars.csv", row.names = FALSE, sep = ",") temp <- fileply(file = "mtcars.csv" , groupby = c("carb", "gear") , fun = identity , collect = "list" , sep = "," , header = TRUE ) temp to_tibble(temp) unlink("mtcars.csv")
write.table(mtcars, "mtcars.csv", row.names = FALSE, sep = ",") temp <- fileply(file = "mtcars.csv" , chunk = 10 , fun = function(x){list(nrow(x))} , collect = "dataframe" , sep = "," , header = TRUE ) temp unlink("mtcars.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.