Skip to contents

Builds suggested partitioning from the primary keys of the table.

Usage

cache_make_partitioning(x, primary_keys = cache_get_attributes(x)$primary_keys)

Arguments

x

data.frame

primary_keys

primary keys to set partitioning with

Value

an unevaluated expression determining the partitioning

Examples

x <- data.frame(a = c(1, 2, 3), b = c("a", "b", "c"))

cache_make_partitioning(x, primary_keys = "a")
#> floor(a/10000)
# expression a/10000