get_cansim_ndm | R Documentation |
Retrieves a data table as a tidy dataframe using either an old-style CANSIM code or a new-format NDM table number. This function will automatically convert old-style CANSIM codes into their new equivalents. Retrieved table data is cached for the duration of the current R session only by default.
get_cansim_ndm( cansimTableNumber, language = "english", refresh = FALSE, timeout = 200 )
cansimTableNumber |
the table number to load, accepts old CANSIM or new NDM table numbers |
language |
|
refresh |
(Optional) When set to |
timeout |
(Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection. |
Deprecated, use 'get_cansim' instead. This will be removed in future releases.
A tibble with the StatCan table data
## Not run: # Retrieve a table with an NDM code get_cansim("34-10-0013") # Retrieve a table with an old-style CANSIM code get_cansim("026-0018") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.