Package: cancensus 0.5.7

Dmitry Shkolnik

cancensus: Access, Retrieve, and Work with Canadian Census Data and Geography

Integrated, convenient, and uniform access to Canadian Census data and geography retrieved using the 'CensusMapper' API. This package produces analysis-ready tidy data frames and spatial data in multiple formats, as well as convenience functions for working with Census variables, variable hierarchies, and region selection. API keys are freely available with free registration at <https://censusmapper.ca/api>. Census data and boundary geometries are reproduced and distributed on an "as is" basis with the permission of Statistics Canada (Statistics Canada 2001; 2006; 2011; 2016; 2021).

Authors:Jens von Bergmann [aut], Dmitry Shkolnik [aut, cre], Aaron Jacobs [aut]

cancensus_0.5.7.tar.gz
cancensus_0.5.7.zip(r-4.5)cancensus_0.5.7.zip(r-4.4)cancensus_0.5.7.zip(r-4.3)
cancensus_0.5.7.tgz(r-4.4-any)cancensus_0.5.7.tgz(r-4.3-any)
cancensus_0.5.7.tar.gz(r-4.5-noble)cancensus_0.5.7.tar.gz(r-4.4-noble)
cancensus_0.5.7.tgz(r-4.4-emscripten)cancensus_0.5.7.tgz(r-4.3-emscripten)
cancensus.pdf |cancensus.html
cancensus/json (API)
NEWS

# Install 'cancensus' in R:
install.packages('cancensus', repos = c('https://mountainmath.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mountainmath/cancensus/issues

Datasets:

On CRAN:

8.77 score 82 stars 388 scripts 1.2k downloads 32 exports 24 dependencies

Last updated 9 months agofrom:2833171221. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 06 2024
R-4.5-winOKNov 06 2024
R-4.5-linuxOKNov 06 2024
R-4.4-winNOTENov 06 2024
R-4.4-macNOTENov 06 2024
R-4.3-winNOTENov 06 2024
R-4.3-macNOTENov 06 2024

Exports:add_unique_names_to_region_listas_census_region_listcensus_vectorschild_census_vectorsdataset_attributionexplore_census_regionsexplore_census_vectorsfind_census_vectorsget_censusget_census_geometryget_intersecting_geometriesget_statcan_geo_suiteget_statcan_geographic_attributesget_statcan_geographiesget_statcan_geography_relationshipsget_statcan_wds_dataget_statcan_wds_metadatalabel_vectorslist_cancensus_cachelist_census_datasetslist_census_regionslist_census_vectorslist_recalled_cached_dataparent_census_vectorsremove_from_cancensus_cacheremove_recalled_cached_datasearch_census_regionssearch_census_vectorsset_cancensus_api_keyset_cancensus_cache_pathshow_cancensus_api_keyshow_cancensus_cache_path

Dependencies:askpassclicurldigestdplyrfansigenericsgluehttrjsonlitelifecyclemagrittrmimeopensslpillarpkgconfigR6rlangsystibbletidyselectutf8vctrswithr

Additional datasets: Annual T1FF taxfiler data

Rendered fromTaxfiler_Data.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2022-08-25
Started: 2020-06-21

Additional datasets: Structural type of dwelling by document type

Rendered fromDwellings_by_document_type_cross_tabulation.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2020-06-21
Started: 2020-06-21

cancensus

Rendered fromcancensus.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2024-02-10
Started: 2017-11-17

Data discovery

Rendered fromdata_discovery.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2023-01-23
Started: 2020-06-21

Finding intersecting geometries from custom data

Rendered fromintersecting_geometries.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2021-01-11
Started: 2021-01-11

Making maps with cancensus

Rendered fromMaking_maps_with_cancensus.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2022-08-25
Started: 2017-11-17

StatCan attribute files

Rendered fromstatcan_attribute_files.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2023-01-23
Started: 2023-01-23

StatCan WDS

Rendered fromstatcan_wds.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2024-02-10
Started: 2023-01-23

Readme and manuals

Help Manual

Help pageTopics
Convenience function for creating unique names from region listadd_unique_names_to_region_list
Convert a (suitably filtered) data frame from 'list_census_regions' to a list suitable for passing to 'get_census'.as_census_region_list
List all child variables from vector hierarchies given either a list of Census variables returned by 'list_census_vectors', 'search_census_vectors', 'find_census_vectors', or a direct string reference to the vector code.child_census_vectors
A dataset with code table summaries for census dataCODES_TABLE
A dataset City of Vancouver skytrain station locationsCOV_SKYTRAIN_STATIONS
Get attribution for datasetsdataset_attribution
Interactively browse Census variables and regions on Censusmapper.ca in a new browser windowexplore_census_regions
Interactively browse Census variables and regions on Censusmapper.ca in a new browser windowexplore_census_vectors
Query the CensusMapper API for vectors using exact, semantic, or keyword searchfind_census_vectors
Access to Canadian census data through the CensusMapper APIget_census
Get identifiers for census regions intersecting a geometryget_intersecting_geometries
Read the geosuite dataget_statcan_geo_suite
Read the Geographic Attributes Fileget_statcan_geographic_attributes
Read the geosuite dataget_statcan_geographies
Query the StatCan WDS for dataget_statcan_wds_data
Query the StatCan WDS for metadataget_statcan_wds_metadata
Return Census variable names and labels as a tidy data framelabel_vectors
List cached fileslist_cancensus_cache
Query the CensusMapper API for available datasets.list_census_datasets
Query the CensusMapper API for available regions in a given dataset.list_census_regions
Query the CensusMapper API for available vectors for a given dataset.list_census_vectors
List recalled data stored in local cachelist_recalled_cached_data
List all parent variables from vector hierarchies given either a list of Census variables returned by 'list_census_vectors', 'search_census_vectors', 'find_census_vectors', or a direct string reference to the vector code.parent_census_vectors
Remove cached filesremove_from_cancensus_cache
Remove recalled data from local cacheremove_recalled_cached_data
Query the CensusMapper API for regions with names matching a searchterm.search_census_regions
Query the CensusMapper API for vectors with descriptions matching a search term or phrase (deprecated)search_census_vectors
Set Censusmapper API keyset_cancensus_api_key
Set persistent cancensus cache locationset_cancensus_cache_path
View saved Censusmapper API keyshow_cancensus_api_key
View saved cache directory pathshow_cancensus_cache_path