list_cansim_cubes()
The appropriate table can be found by subsetting or filtering on the properties we want to use to find the appropriate tables. This work well with standard dplyr verbs.
-list_cansim_cubes() %>%
- filter(grepl("Labour force characteristics",cubeTitleEn), grepl("economic region",cubeTitleEn)) %>%
- select("cansim_table_number","cubeTitleEn")
+list_cansim_cubes() %>%
+ filter(grepl("Labour force characteristics",cubeTitleEn), grepl("economic region",cubeTitleEn)) %>%
+ select("cansim_table_number","cubeTitleEn")
Retrieving the table list takes a little bit of time, so results are cached for the duration of a session. If sessions span several days the refresh=TRUE argument can be passed to regenerate the list to capture newly published tables.
The Listing Statistics Canada data tables vignette has additional detail and examples.
@@ -322,7 +327,7 @@ Dev status
-
+