census_make_dguid: Create DGUIDs for StatsCan Census Regions

View source: R/census.R

census_make_dguidR Documentation

Create DGUIDs for StatsCan Census Regions

Description

This function takes a set of census region geographic unique identifiers (GEOUIDs) and returns their corresponding geographic identifiers (DGUIDs). These DGUIDs are useful because you can use them to query StatsCan's APIs to retrieve census data.

Usage

census_make_dguid(data, geouid_type = NA, vintage_year = 2016)

Arguments

data

A vector or one-column dataframe of census Geographic Unique Identifiers (GEOUIDs).

geouid_type

The type of GEOUID. Consult the dataframe onsr::census_geo_types to see the valid options.

vintage_year

The year for the data you're interested in. Different GEOUID types have different options. The default is 2016, the most recent census year available.

Details

https://www150.statcan.gc.ca/n1/pub/92f0138m/92f0138m2019001-eng.htm

Value

Data


Ottawa-Neighbourhood-Study/onsr documentation built on June 19, 2022, 11:46 a.m.