assign_cbsa: Assign CBSA

Description Usage Arguments Value

View source: R/loading.R

Description

This function assigns the CBSA for a supplied county or Census tract. The assignment will be based on the CBSA definitions that are in place on January 1st of each date by default (assuming only the year is supplied).

Usage

1
2
3
4
5
6
7
8
assign_cbsa(
  tract,
  county_fips,
  date = format(Sys.Date(), "%Y%m"),
  use_md = TRUE,
  only_metro = TRUE,
  assign_nonmetro = FALSE
)

Arguments

tract

Census tract

date

Date of OMB defintition to use (default equals current definition)

use_md

Logical indicating if metropolitan division should be returned (default = TRUE)

only_metro

Match only Metropolitan Statistical Areas (default = FALSE)

assign_nonmetro

Logical indicating whether rural areas should be assigned to n a cbsa value of 999SS where SS is the state FIPS code of the area.

county

5-digit county FIPS code

Value

Vector of cbsa values.


kbrevoort/cbsa documentation built on June 12, 2020, 8:44 a.m.