Query the CensusMapper API for available vectors for a given dataset.
The dataset to query for available vectors, e.g.
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 FALSE, shows messages and warnings. Set to TRUE by default.
Returns a data frame detailing the available Census vectors (i.e. variables) for a given Census
dataset. This data frame has columns
vector containing the short code for the
type describing whether it's a female, male, or total aggregate,
indicating the name of the variable,
units indicating whether the value represents a
numeric integer, percentage, dollar figure, or ratio,
parent_vector to show hierarchical
aggregation indicating whether the value is additive or a transformation,
and a column
details with a detailed description of the variable generated by traversing
all labels within its hierarchical structure.
# List all vectors for a given Census dataset in CensusMapper list_census_vectors('CA16')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.