Learn R Programming

basedosdados (version 0.2.2)

partition_table: Slice a big data frame into smaller csv files by grouping variables Still in development

Description

partition_table populates a folder

Usage

partition_table(.data, dir, ...)

Value

invisibly returns all written files' addresses.

Arguments

.data

a tibble.

dir

directory where to write the csv files. Must exist before function call.

...

comma-separated variables used to define groupings.

Examples

Run this code

if (FALSE) {

tibble(
  x = rnorm(1000),
  y = runif(1000) + x,
  group = sample(letters, 1000, replace = TRUE)) %>%
  partition_table(tempdir())


}


Run the code above in your browser using DataLab