
Repartitions a cached cansim table to a new partitioning scheme
Source:R/cansim_parquet.R
cansim_repartition_cached_table.Rd
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 = Sys.getenv("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"
, orsqlite
(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 `Sys.getenv("CANSIM_CACHE_PATH")`, if this is set. Otherwise it will use `tempdir()`.
Examples
if (FALSE) { # \dontrun{
cansim_repartition_cached_table("34-10-0013",new_partitioning=c("GeoUID"))
} # }