Query the CensusMapper API for available datasets.

list_census_datasets(use_cache = FALSE, quiet = FALSE)



If set to TRUE, data will be read from a local cache, if available. If set to FALSE (the default), query the API for the data, and refresh the local cache with the result.


When TRUE, suppress messages and warnings.


Returns a data frame with a column dataset containing the code for the dataset, and a column description describing it.


# List available datasets in CensusMapper list_census_datasets()
#> Querying CensusMapper API for available datasets...
#> # A tibble: 4 x 2 #> dataset description #> <chr> <chr> #> 1 CA01 2001 Canada Census #> 2 CA06 2006 Canada Census #> 3 CA11 2011 Canada Census and NHS #> 4 CA16 2016 Canada Census