ntdf: Create segregation measure

View source: R/ntdf.R

ntdfR Documentation

Create segregation measure

Description

Drawn from Hall, Matthew, Kyle Crowder, and Amy Spring. 2015. “Neighborhood Foreclosures, Racial/Ethnic Transitions, and Residential Segregation.” American Sociological Review 80:526–549.

Usage

ntdf(
  state,
  geography = "tract",
  county = NULL,
  geometry = FALSE,
  cache_table = TRUE,
  output = "wide",
  year = 2019,
  ...
)

Arguments

state

Study state or states

geography

Default "tract", see tidycensus for options

county

Study county or counties

geometry

Download sf spatial feature. Default is FALSE

cache_table

Default TRUE

output

Default "wide", other option is "tidy"

year

Default "NULL"

...

Other keyword arguments

Value

A dataframe of racial segregated neighborhoods

Examples

## Not run: 
Baltimore_nt <- ntdf(state = "MD", county = "Baltimore City", geometry = TRUE)
dplyr::glimpse(Baltimore_nt)

## End(Not run)

timathomas/neighborhood documentation built on Feb. 17, 2024, 11:44 a.m.