View source: R/cansim_vectors.R
get_cansim_vector | R Documentation |
Retrieve data for a Statistics Canada data vector released within a given time frame
get_cansim_vector(
vectors,
start_time = as.Date("1800-01-01"),
end_time = Sys.time(),
use_ref_date = TRUE,
refresh = FALSE,
timeout = 200,
factors = TRUE,
default_month = "07",
default_day = "01"
)
vectors |
The list of vectors to retrieve |
start_time |
Starting date in |
end_time |
Set an optional end time filter in |
use_ref_date |
Optional, |
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. |
factors |
(Optional) Logical value indicating if dimensions should be converted to factors. (Default set to |
default_month |
The default month that should be used when creating Date objects for annual data (default set to "07") |
default_day |
The default day of the month that should be used when creating Date objects for monthly data (default set to "01") |
A tibble with data for vectors released between start and end time
## Not run:
get_cansim_vector("v41690973","2015-01-01")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.