R/cansim_vectors.R
get_cansim_vector.Rd
Retrieve data for a Statistics Canada data vector released within a given time frame
The list of vectors to retrieve
Starting date in YYYY-MM-DD
format, applies to REF_DATE
or releaseTime
, depending on use_ref_date
parameter
Set an optional end time filter in YYYY-MM-DD
format (defaults to current system time)
Optional, TRUE
by default. When set to TRUE
, uses REF_DATE
of vector data to filter, otherwise it uses StatisticsCanada's releaseDate
value for filtering the specified vectors.
"en"
or "english"
for English and "fr"
or "french"
for French language versions (defaults to English)
(Optional) When set to TRUE
, forces a reload of data table (default is FALSE
)
(Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection.
(Optional) Logical value indicating if dimensions should be converted to factors. (Default set to TRUE
).
The default month that should be used when creating Date objects for annual data (default set to "07")
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
if (FALSE) {
get_cansim_vector("v41690973","2015-01-01")
}