Learn R Programming

cansim (version 0.4)

cansim_repartition_cached_table: 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

Run this code
if (FALSE) {
cansim_repartition_cached_table("34-10-0013",new_partitioning=c("GeoUID"))

}

Run the code above in your browser using DataLab