cansim (version 0.3.3)

get_cansim_ndm: Retrieve a Statistics Canada data table using NDM catalogue number

Description

Retrieves a data table using an NDM catalogue number as a tidy data frame. Retrieved table data is cached for the duration of the current R session only by default.

Usage

get_cansim_ndm(cansimTableNumber, language = "english",
  refresh = FALSE, timeout = 200)

Arguments

cansimTableNumber

the NDM table number to load

language

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

refresh

(Optional) When set to TRUE, forces a reload of data table (default is FALSE)

timeout

(Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection.

Value

tibble format data table output

Examples

Run this code
# NOT RUN {
get_cansim("34-10-0013")

# }

Run the code above in your browser using DataLab