knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

{mapcdatakeys}

UPDATE: ACS 2018-22 Municipal GEOIDS added to mapcdatakeys::all_muni_data_keys() function

UPDATE: Added MPO ID, Name, and Acronym variables to mapcdatakeys::all_muni_data_keys() function

UPDATE: Added two NEW tables: nbhd_muni_xw and zip_muni_xw

This package contains two kinds of components:

Data Keys

These data keys are created at the municipal, census block, block group and tract level. As Census geographies can change between two decadal counts, they have two kinds of crosswalks - geographical, and weighted. For these, we provide two functions described below.

Please raise an issue if you would like any additions, or alterations to this package which we can incorporate.

Detailed descriptions of each geographic level of data keys can be found on their individual pages below:

Functions to call crosswalks

These two functions are used to call specific crosswalks based on either their vintage, and/or the relevant geographic unit.

This package obtains standardized data keys for four different geographic levels in Massachusetts.

Installation

You can install the released version of mapcdatakeys with:

# install.packages("devtools")
devtools::install_github("MAPC/mapcdatakeys")

Examples for

Load the package with this line:

library(mapcdatakeys)

head(mapcdatakeys::mbta_data_keys)

Incredible help from Desiree De Leon and Alison Hill from their rstudio4edu handbook, chapter 12



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