cansim_repartition_cached_table: Repartitions a cached cansim table to a new partitioning...

cansim_repartition_cached_tableR Documentation

Repartitions a cached cansim table to a new partitioning scheme

Description

Repartitions and already downloaded and cached parquet or feather dataset

Usage

cansim_repartition_cached_table(
  cansimTableNumber,
  new_partitioning = c(),
  language = "english",
  format = "parquet",
  cache_path = getOption("cansim.cache_path")
)

Arguments

cansimTableNumber

the NDM table number to load

new_partitioning

(Optional) Partition columns to use for parquet or feather formats.

language

"en" or "english" for English and "fr" or "french" for French language versions (defaults to English)

format

(Optional) The format of the data table to retrieve. Either "parquet", "feather", or sqlite (default is "parquet").

cache_path

(Optional) Path to where to cache the table permanently. By default, the data is cached in the path specified by 'getOption("cansim.cache_path")', if this is set. Otherwise it will use 'tempdir()'.

Examples

## Not run: 
cansim_repartition_cached_table("34-10-0013",new_partitioning=c("GeoUID"))


## End(Not run)

cansim documentation built on April 3, 2025, 10:26 p.m.