knitr::opts_chunk$set(echo = TRUE)

Crosswalk Functions

These two functions are used to call the two respective kinds of crosswalks available in this package - weighted, and nested crosswalks.

Weighted Crosswalks

mapcdatakeys::crosswalk_wtd(geography, vintage)

This is a function to call desired weighted crosswalk for population and housing unit values in desired census geographies and vintage.

It requires two arguments:

Example: 2020 and 2010 values for housing units and population for 2010 Census Tract geographies (ct10_id)
head(mapcdatakeys::crosswalk_wtd(geography = 'tract', vintage = 2010))
Example: 2020 and 2010 values for housing units and population for 2020 Census Block Group geographies (bg20_id)
head(mapcdatakeys::crosswalk_wtd(geography = 'block group', vintage = 2020))

Geographic Crosswalks

mapcdatakeys::crosswalk_wtd(geography, vintage)

This is a function to call desired nested crosswalk for census geographies and vintage.

It requires one argument:

Example: 2020 block assignment files and nested geographies for block, block group, tract, municipality, county, and state for Massachusetts.
head(mapcdatakeys::crosswalk_geog(year = 2020))


MAPC/mapcdatakeys documentation built on Jan. 29, 2025, 6:20 p.m.