partition_table {basedosdados}R Documentation

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, ...)

Arguments

.data

a tibble.

dir

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

...

comma-separated variables used to define groupings.

Value

invisibly returns all written files' addresses.

Examples


## Not run: 

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



## End(Not run)



[Package basedosdados version 0.2.2 Index]