| Title: | New York City Demographic Data from the Census |
|---|---|
| Description: | County-, tract-, and block-level demographic data for the five counties of New York City, derived from the US Census Bureau via 'tidycensus'. Provides curated tibbles keyed by GEOID and thin wrapper functions for fetching custom NYC slices on demand. |
| Authors: | Kieran Healy [aut, cre] (ORCID: <https://orcid.org/0000-0001-9114-981X>) |
| Maintainer: | Kieran Healy <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.0.3 |
| Built: | 2026-10-07 09:08:24 UTC |
| Source: | https://github.com/kjhealy/nycdemog |
A thin wrapper around tidycensus::get_acs() that hard-codes New York
City geographies, never downloads geometry, and returns a tidy tibble
keyed by geoid (lowercased) with a county column (borough name) ready
for joining to the spatial objects in the nycmaps package.
get_nyc_acs( variables, year = NULL, geography = c("tract", "block group", "county", "puma"), survey = "acs5", summary_var = NULL, output = c("wide", "tidy"), ... )get_nyc_acs( variables, year = NULL, geography = c("tract", "block group", "county", "puma"), survey = "acs5", summary_var = NULL, output = c("wide", "tidy"), ... )
variables |
A character vector (optionally named) of Census variable
IDs. See |
year |
ACS endyear. If |
geography |
Geographic level. One of |
survey |
ACS sample, passed to |
summary_var |
Optional summary (denominator) variable. |
output |
|
... |
Additional arguments forwarded to |
A tibble with geoid and county as the first two columns,
followed by the requested variables. The ACS endyear actually used is
stored in the "acs_year" attribute.
get_nyc_decennial(), load_nyc_variables(), nyc_counties(),
nyc_pumas()
## Not run: # Median household income, latest 5-year ACS, NYC tracts. get_nyc_acs(c(med_hhinc = "B19013_001")) # Same, but at the PUMA level. get_nyc_acs( c(med_hhinc = "B19013_001"), geography = "puma" ) # Same, but one row per borough. get_nyc_acs( c(med_hhinc = "B19013_001"), geography = "county" ) # Race and Hispanic origin, with total population as the denominator. race_vars <- c( nh_white = "B03002_003", nh_black = "B03002_004", nh_asian = "B03002_006", hispanic = "B03002_012" ) get_nyc_acs(race_vars, summary_var = "B03002_001") ## End(Not run)## Not run: # Median household income, latest 5-year ACS, NYC tracts. get_nyc_acs(c(med_hhinc = "B19013_001")) # Same, but at the PUMA level. get_nyc_acs( c(med_hhinc = "B19013_001"), geography = "puma" ) # Same, but one row per borough. get_nyc_acs( c(med_hhinc = "B19013_001"), geography = "county" ) # Race and Hispanic origin, with total population as the denominator. race_vars <- c( nh_white = "B03002_003", nh_black = "B03002_004", nh_asian = "B03002_006", hispanic = "B03002_012" ) get_nyc_acs(race_vars, summary_var = "B03002_001") ## End(Not run)
A thin wrapper around tidycensus::get_decennial() that hard-codes the
five New York City counties, never downloads geometry, and returns a tidy
tibble keyed by geoid (lowercased) with a county column ready for
joining to the spatial objects in the nycmaps package.
get_nyc_decennial( variables, year = 2020, geography = c("tract", "block", "block group", "county"), sumfile = "pl", summary_var = NULL, output = c("wide", "tidy"), ... )get_nyc_decennial( variables, year = 2020, geography = c("tract", "block", "block group", "county"), sumfile = "pl", summary_var = NULL, output = c("wide", "tidy"), ... )
variables |
A character vector (optionally named) of Census variable
IDs. See |
year |
Decennial Census year. Defaults to |
geography |
Geographic level. One of |
sumfile |
Census summary file. Defaults to |
summary_var |
Optional summary (denominator) variable. |
output |
|
... |
Additional arguments forwarded to |
A tibble with geoid and county as the first two columns,
followed by the requested variables. The Census year and sumfile used
are stored in the "decennial_year" and "decennial_sumfile"
attributes.
get_nyc_acs(), load_nyc_variables(), nyc_counties()
## Not run: # 2020 PL 94-171 race and Hispanic origin at the block level. race_vars <- c( nh_white = "P2_005N", nh_black = "P2_006N", nh_asian = "P2_008N", hispanic = "P2_002N" ) get_nyc_decennial( race_vars, geography = "block", sumfile = "pl", summary_var = "P1_001N" ) # 2020 DHC household type at tract level. get_nyc_decennial( c(family_hh = "H9_002N", nonfamily_hh = "H9_009N"), geography = "tract", sumfile = "dhc" ) # 2020 PL 94-171 total population, one row per borough. get_nyc_decennial( c(total_pop = "P1_001N"), geography = "county", sumfile = "pl" ) ## End(Not run)## Not run: # 2020 PL 94-171 race and Hispanic origin at the block level. race_vars <- c( nh_white = "P2_005N", nh_black = "P2_006N", nh_asian = "P2_008N", hispanic = "P2_002N" ) get_nyc_decennial( race_vars, geography = "block", sumfile = "pl", summary_var = "P1_001N" ) # 2020 DHC household type at tract level. get_nyc_decennial( c(family_hh = "H9_002N", nonfamily_hh = "H9_009N"), geography = "tract", sumfile = "dhc" ) # 2020 PL 94-171 total population, one row per borough. get_nyc_decennial( c(total_pop = "P1_001N"), geography = "county", sumfile = "pl" ) ## End(Not run)
Convenience wrapper around tidycensus::load_variables() for browsing the
variable catalogues used by get_nyc_acs() and get_nyc_decennial(). The
result is identical to a direct tidycensus call; this function exists so
that all NYC-oriented Census helpers live in one place.
load_nyc_variables(year, dataset, cache = TRUE)load_nyc_variables(year, dataset, cache = TRUE)
year |
The year, or endyear, of the dataset. |
dataset |
Dataset name. Common choices: |
cache |
Whether to cache the variable table on disk for re-use across
sessions. Defaults to |
A tibble of variable IDs, labels, and concepts.
## Not run: acs <- load_nyc_variables(2023, "acs5") dplyr::filter(acs, grepl("median household income", label, ignore.case = TRUE)) ## End(Not run)## Not run: acs <- load_nyc_variables(2023, "acs5") dplyr::filter(acs, grepl("median household income", label, ignore.case = TRUE)) ## End(Not run)
Population aged 18 and over (and the derived population under 18) for the
five New York City counties at the 2020 Census block level. Sourced from
the 2020 Decennial Census PL 94-171 redistricting summary file. Joins to
nycmaps::nyc_census_blocks_2020_sf on geoid.
nyc_block_20_adults_dfnyc_block_20_adults_df
A tibble with 37,984 rows and 6 columns:
15-character block GEOID.
NYC county (borough) name derived from geoid.
Census block label as returned by the Census Bureau.
Total population of the block (P1_001N).
Population aged 18 and over (P3_001N).
Population under 18, computed as total_pop - adults.
US Census Bureau, 2020 Decennial Census, PL 94-171 Redistricting
Data Summary File. Retrieved via tidycensus::get_decennial().
https://www.census.gov/programs-surveys/decennial-census/about/rdo/summary-files.html
Population counts for the five New York City counties at the 2020 Census
block level, broken down by race and Hispanic origin. Sourced from the
2020 Decennial Census PL 94-171 redistricting summary file. Joins to
nycmaps::nyc_census_blocks_2020_sf on geoid.
nyc_block_20_race_dfnyc_block_20_race_df
A tibble with 37,984 rows and 25 columns:
15-character block GEOID (state + county + tract + block).
NYC county (borough) name derived from geoid.
Census block label as returned by the Census Bureau.
Total population of the block (PL summary variable
P1_001N).
Population reporting White alone (P1_003N).
Population reporting Black or African American alone
(P1_004N).
American Indian and Alaska Native alone (P1_005N).
Asian alone (P1_006N).
Native Hawaiian and Other Pacific Islander alone
(P1_007N).
Some other race alone (P1_008N).
Two or more races (P1_009N).
Hispanic or Latino population (P2_002N).
Not Hispanic or Latino population (P2_003N).
Not Hispanic, White alone (P2_005N).
Not Hispanic, Black or African American alone
(P2_006N).
Not Hispanic, AIAN alone (P2_007N).
Not Hispanic, Asian alone (P2_008N).
Not Hispanic, NHOPI alone (P2_009N).
Not Hispanic, some other race alone (P2_010N).
Not Hispanic, two or more races (P2_011N).
Proportion of total_pop that is non-Hispanic White
alone. NA when total_pop == 0.
Proportion non-Hispanic Black alone.
Proportion non-Hispanic Asian alone.
Proportion Hispanic or Latino.
Proportion non-Hispanic two or more races.
US Census Bureau, 2020 Decennial Census, PL 94-171 Redistricting
Data Summary File. Retrieved via tidycensus::get_decennial().
https://www.census.gov/programs-surveys/decennial-census/about/rdo/summary-files.html
The five counties (boroughs) that make up New York City, in the form
expected by tidycensus::get_acs() and tidycensus::get_decennial()
(i.e. county names, not FIPS codes).
nyc_counties()nyc_counties()
A character vector of length 5: "New York", "Kings",
"Queens", "Bronx", "Richmond".
nyc_counties()nyc_counties()
Population aged 18 and over (and the derived population under 18) for the
five New York City counties (boroughs). Sourced from the 2020 Decennial
Census PL 94-171 redistricting summary file. The county-level counterpart
of nyc_block_20_adults_df. Joins to nycmaps::nyc_boros_sf via the
county column, which matches nycmaps::nyc_boros$short_county_name.
nyc_county_20_adults_dfnyc_county_20_adults_df
A tibble with 5 rows and 6 columns:
5-character county GEOID.
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau.
Total population of the county (P1_001N).
Population aged 18 and over (P3_001N).
Population under 18, computed as total_pop - adults.
US Census Bureau, 2020 Decennial Census, PL 94-171 Redistricting
Data Summary File. Retrieved via tidycensus::get_decennial().
https://www.census.gov/programs-surveys/decennial-census/about/rdo/summary-files.html
Total population, sex, and ten standard age bins for the five New York
City counties (boroughs). Sourced from the 2020 Decennial Census
Demographic and Housing Characteristics (DHC) file, table P12 ("Sex by
age for selected age categories"). Each age bin is the sum of the
corresponding male and female detail categories from P12, so the bins sum
exactly to total_pop and male + female equals total_pop. The
county-level counterpart of nyc_tract_20_age_sex_df. Joins to
nycmaps::nyc_boros_sf via the county column, which matches
nycmaps::nyc_boros$short_county_name.
nyc_county_20_age_sex_dfnyc_county_20_age_sex_df
A tibble with 5 rows and 16 columns:
5-character county GEOID (state + county).
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau.
Total population (P12_001N).
Male population (P12_002N).
Female population (P12_026N).
Population aged under 5.
Population aged 5 to 17.
Population aged 18 to 24.
Population aged 25 to 34.
Population aged 35 to 44.
Population aged 45 to 54.
Population aged 55 to 64.
Population aged 65 to 74.
Population aged 75 to 84.
Population aged 85 and over.
US Census Bureau, 2020 Decennial Census, Demographic and Housing
Characteristics (DHC) File, table P12. Retrieved via
tidycensus::get_decennial().
https://www.census.gov/data/tables/2023/dec/2020-census-dhc.html
Household counts by type for the five New York City counties (boroughs).
Sourced from the 2020 Decennial Census Demographic and Housing
Characteristics (DHC) file, table P16 ("Household type"). The family /
non-family split sums exactly to total_households. The county-level
counterpart of nyc_tract_20_household_df. Joins to
nycmaps::nyc_boros_sf via the county column, which matches
nycmaps::nyc_boros$short_county_name.
nyc_county_20_household_dfnyc_county_20_household_df
A tibble with 5 rows and 14 columns:
5-character county GEOID.
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau.
Total occupied housing units (P16_001N).
Family households (P16_002N).
Married-couple family households (P16_003N).
Other family households (P16_004N).
Male householder, no spouse present
(P16_005N).
Female householder, no spouse
present (P16_006N).
Non-family households (P16_007N).
Householder living alone (P16_008N).
Non-family householder not living alone
(P16_009N).
Proportion of households that are family households.
NA when total_households == 0.
Proportion of households whose householder is living alone.
US Census Bureau, 2020 Decennial Census, Demographic and Housing
Characteristics (DHC) File, table P16. Retrieved via
tidycensus::get_decennial().
https://www.census.gov/data/tables/2023/dec/2020-census-dhc.html
Population counts for the five New York City counties (boroughs), broken
down by race and Hispanic origin. Sourced from the 2020 Decennial Census
PL 94-171 redistricting summary file. The county-level counterpart of
nyc_block_20_race_df. Joins to nycmaps::nyc_boros_sf via the
county column, which matches nycmaps::nyc_boros$short_county_name.
nyc_county_20_race_dfnyc_county_20_race_df
A tibble with 5 rows and 25 columns:
5-character county GEOID (state + county).
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau, e.g.
"Kings County, New York".
Total population of the county (PL summary variable
P1_001N).
Population reporting White alone (P1_003N).
Population reporting Black or African American alone
(P1_004N).
American Indian and Alaska Native alone (P1_005N).
Asian alone (P1_006N).
Native Hawaiian and Other Pacific Islander alone
(P1_007N).
Some other race alone (P1_008N).
Two or more races (P1_009N).
Hispanic or Latino population (P2_002N).
Not Hispanic or Latino population (P2_003N).
Not Hispanic, White alone (P2_005N).
Not Hispanic, Black or African American alone
(P2_006N).
Not Hispanic, AIAN alone (P2_007N).
Not Hispanic, Asian alone (P2_008N).
Not Hispanic, NHOPI alone (P2_009N).
Not Hispanic, some other race alone (P2_010N).
Not Hispanic, two or more races (P2_011N).
Proportion of total_pop that is non-Hispanic White
alone. NA when total_pop == 0.
Proportion non-Hispanic Black alone.
Proportion non-Hispanic Asian alone.
Proportion Hispanic or Latino.
Proportion non-Hispanic two or more races.
US Census Bureau, 2020 Decennial Census, PL 94-171 Redistricting
Data Summary File. Retrieved via tidycensus::get_decennial().
https://www.census.gov/programs-surveys/decennial-census/about/rdo/summary-files.html
Educational attainment for the population 25 years and over from the
2020-2024 American Community Survey 5-year release for the five New York
City counties (boroughs). Sourced from ACS table B15003. Each estimate is
accompanied by its 90% margin of error, with the suffix _moe. The
county-level counterpart of nyc_tract_acs_education_df. Joins to
nycmaps::nyc_boros_sf via the county column, which matches
nycmaps::nyc_boros$short_county_name.
nyc_county_acs_education_dfnyc_county_acs_education_df
A tibble with 5 rows and 26 columns:
5-character county GEOID.
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau.
Population 25 years and over (B15003_001).
No schooling completed (B15003_002).
9th to 12th grade, no diploma (B15003_016).
Regular high school diploma (B15003_017).
Some college, 1 or more years, no degree
(B15003_019).
Associate's degree (B15003_021).
Bachelor's degree (B15003_022).
Master's degree (B15003_023).
Professional school degree (B15003_024).
Doctorate degree (B15003_025).
Margins of error for the corresponding estimates.
edu_bachelors + edu_masters + edu_professional + edu_doctorate.
Proportion of edu_total with a
bachelor's degree or higher. NA when edu_total == 0.
Proportion of edu_total whose highest
attainment is below a high school diploma.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, table B15003. Retrieved via tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Labor force status estimates from the 2020-2024 American Community Survey
5-year release for the five New York City counties (boroughs). Sourced
from ACS table B23025 ("Employment status for the population 16 years and
over"). Each estimate is accompanied by its 90% margin of error, with the
suffix _moe. The county-level counterpart of
nyc_tract_acs_employment_df. Joins to nycmaps::nyc_boros_sf via the
county column, which matches nycmaps::nyc_boros$short_county_name.
nyc_county_acs_employment_dfnyc_county_acs_employment_df
A tibble with 5 rows and 19 columns:
5-character county GEOID.
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau.
Population 16 years and over (B23025_001).
In labor force (B23025_002).
Civilian labor force (B23025_003).
Civilian employed (B23025_004).
Civilian unemployed (B23025_005).
Armed forces (B23025_006).
Not in labor force (B23025_007).
Margins of error for the corresponding estimates.
lf_in_labor_force / lf_total. NA
when lf_total == 0.
lf_unemployed / lf_civilian. NA when
lf_civilian == 0.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, table B23025. Retrieved via tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Housing-unit counts, occupancy, tenure, value, rent, and year built from
the 2020-2024 American Community Survey 5-year release for the five New
York City counties (boroughs). Each estimate is accompanied by its 90%
margin of error, with the suffix _moe. The county-level counterpart of
nyc_tract_acs_housing_df. Joins to nycmaps::nyc_boros_sf via the
county column, which matches nycmaps::nyc_boros$short_county_name.
nyc_county_acs_housing_dfnyc_county_acs_housing_df
A tibble with 5 rows and 23 columns:
5-character county GEOID.
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau.
Total housing units (B25001_001).
Occupied housing units (B25002_002).
Vacant housing units (B25002_003).
Occupied housing units, tenure denominator
(B25003_001).
Owner-occupied units (B25003_002).
Renter-occupied units (B25003_003).
Median value of owner-occupied housing units, dollars
(B25077_001).
Median gross rent, dollars (B25064_001).
Median year structure built (B25035_001).
Margins of error for the corresponding estimates.
tenure_owner / tenure_total. NA when
tenure_total == 0.
hu_vacant / hu_total. NA when hu_total == 0.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, tables B25001, B25002, B25003, B25035, B25064, B25077.
Retrieved via tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Income, poverty, and inequality estimates from the 2020-2024 American
Community Survey 5-year release for the five New York City counties
(boroughs). Each estimate is accompanied by its 90% margin of error, with
the suffix _moe. The county-level counterpart of
nyc_tract_acs_income_df. Joins to nycmaps::nyc_boros_sf via the
county column, which matches nycmaps::nyc_boros$short_county_name.
nyc_county_acs_income_dfnyc_county_acs_income_df
A tibble with 5 rows and 16 columns:
5-character county GEOID.
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau.
Median household income, inflation-adjusted dollars
(B19013_001).
Median family income (B19113_001).
Per capita income (B19301_001).
Gini index of income inequality (B19083_001).
Population for whom poverty status is determined
(B17001_001).
Population with income in the past 12 months below
the poverty level (B17001_002).
Margins of error for the corresponding estimates.
poverty_below / poverty_total. NA when
poverty_total == 0.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, tables B19013, B19113, B19301, B19083, B17001. Retrieved via
tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Language spoken at home and place of birth / citizenship from the
2020-2024 American Community Survey 5-year release for the five New York
City counties (boroughs). Sourced from ACS tables B16001 (language spoken
at home) and B05002 (place of birth and citizenship). Each estimate is
accompanied by its 90% margin of error, with the suffix _moe. The
county-level counterpart of nyc_tract_acs_language_nativity_df. Joins
to nycmaps::nyc_boros_sf via the county column, which matches
nycmaps::nyc_boros$short_county_name.
nyc_county_acs_language_nativity_dfnyc_county_acs_language_nativity_df
A tibble with 5 rows and 21 columns:
5-character county GEOID.
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau.
Population 5 years and over (B16001_001).
Speaks English only at home (B16001_002).
Speaks Spanish at home (B16001_003).
Total population, nativity universe (B05002_001).
Native-born population (B05002_002).
Foreign-born population (B05002_013).
Foreign-born, naturalized US citizen (B05002_014).
Foreign-born, not a US citizen (B05002_021).
Margins of error for the corresponding estimates.
lang_english_only / lang_total. NA when
lang_total == 0.
foreign_born / nativity_total. NA when
nativity_total == 0.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, tables B16001 and B05002. Retrieved via
tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Race and Hispanic-origin estimates from the 2020-2024 American Community
Survey 5-year release for the five New York City counties (boroughs).
Sourced from ACS table B03002 ("Hispanic or Latino origin by race"), with
B03002_001 as the population denominator. Each estimate is accompanied
by its 90% margin of error, with the suffix _moe. The county-level
counterpart of nyc_tract_acs_race_df. Joins to nycmaps::nyc_boros_sf
via the county column, which matches
nycmaps::nyc_boros$short_county_name.
nyc_county_acs_race_dfnyc_county_acs_race_df
A tibble with 5 rows and 25 columns:
5-character county GEOID.
NYC county (borough) name derived from geoid.
County label as returned by the Census Bureau.
Total population (B03002_001 summary estimate).
Margin of error for total_pop.
Not Hispanic, White alone (B03002_003).
Not Hispanic, Black or African American alone
(B03002_004).
Not Hispanic, American Indian and Alaska Native alone
(B03002_005).
Not Hispanic, Asian alone (B03002_006).
Not Hispanic, Native Hawaiian and Other Pacific Islander
alone (B03002_007).
Not Hispanic, some other race alone (B03002_008).
Not Hispanic, two or more races (B03002_009).
Hispanic or Latino, any race (B03002_012).
Margins of error for the corresponding estimates.
Proportion non-Hispanic White. NA when
total_pop == 0.
Proportion non-Hispanic Black.
Proportion non-Hispanic Asian.
Proportion Hispanic or Latino.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, table B03002. Retrieved via tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Returned as a named character vector. Useful for filtering or validating
geoid columns whose first five characters encode the state + county
FIPS.
nyc_county_fips()nyc_county_fips()
A named character vector of length 5.
nyc_county_fips()nyc_county_fips()
Returns the NYC PUMAs for a given vintage, each labelled with the
borough (as a county name, matching the convention used elsewhere in
this package) they fall in. NYC has 55 PUMAs in both the 2010 and
2020 vintages; the borough assignment was derived from a largest-
overlap spatial join between nycmaps::nyc_pumas_*_sf and
nycmaps::nyc_boros_sf and hard-coded into the package.
nyc_pumas(vintage = c("2020", "2010"))nyc_pumas(vintage = c("2020", "2010"))
vintage |
PUMA vintage. One of |
The 2010 vintage applies to ACS end-years up to and including 2021; the 2020 vintage applies to ACS end-years 2022 and later.
A tibble with columns puma (5-character PUMA code),
geoid (7-character state + PUMA code, as returned by
tidycensus), and county (borough name as a county, e.g.
"Kings").
nyc_pumas() nyc_pumas("2010")nyc_pumas() nyc_pumas("2010")
Total population, sex, and ten standard age bins for the five New York
City counties at the 2020 Census tract level. Sourced from the 2020
Decennial Census Demographic and Housing Characteristics (DHC) file,
table P12 ("Sex by age for selected age categories"). Each age bin is the
sum of the corresponding male and female detail categories from P12, so
the bins sum exactly to total_pop and male + female equals
total_pop. Joins to nycmaps::nyc_census_tracts_2020_sf on geoid.
nyc_tract_20_age_sex_dfnyc_tract_20_age_sex_df
A tibble with 2,327 rows and 16 columns:
11-character tract GEOID (state + county + tract).
NYC county (borough) name derived from geoid.
Census tract label as returned by the Census Bureau.
Total population (P12_001N).
Male population (P12_002N).
Female population (P12_026N).
Population aged under 5.
Population aged 5 to 17.
Population aged 18 to 24.
Population aged 25 to 34.
Population aged 35 to 44.
Population aged 45 to 54.
Population aged 55 to 64.
Population aged 65 to 74.
Population aged 75 to 84.
Population aged 85 and over.
US Census Bureau, 2020 Decennial Census, Demographic and Housing
Characteristics (DHC) File, table P12. Retrieved via
tidycensus::get_decennial().
https://www.census.gov/data/tables/2023/dec/2020-census-dhc.html
Household counts by type for the five New York City counties at the 2020
Census tract level. Sourced from the 2020 Decennial Census Demographic
and Housing Characteristics (DHC) file, table P16 ("Household type"). The
family / non-family split sums exactly to total_households. Joins to
nycmaps::nyc_census_tracts_2020_sf on geoid.
nyc_tract_20_household_dfnyc_tract_20_household_df
A tibble with 2,327 rows and 14 columns:
11-character tract GEOID.
NYC county (borough) name derived from geoid.
Census tract label as returned by the Census Bureau.
Total occupied housing units (P16_001N).
Family households (P16_002N).
Married-couple family households (P16_003N).
Other family households (P16_004N).
Male householder, no spouse present
(P16_005N).
Female householder, no spouse
present (P16_006N).
Non-family households (P16_007N).
Householder living alone (P16_008N).
Non-family householder not living alone
(P16_009N).
Proportion of households that are family households.
NA when total_households == 0.
Proportion of households whose householder is living alone.
US Census Bureau, 2020 Decennial Census, Demographic and Housing
Characteristics (DHC) File, table P16. Retrieved via
tidycensus::get_decennial().
https://www.census.gov/data/tables/2023/dec/2020-census-dhc.html
Educational attainment for the population 25 years and over from the
2020-2024 American Community Survey 5-year release for the five New York
City counties at the Census tract level. Sourced from ACS table B15003.
Each estimate is accompanied by its 90% margin of error, with the suffix
_moe. Joins to nycmaps::nyc_census_tracts_2020_sf on geoid.
nyc_tract_acs_education_dfnyc_tract_acs_education_df
A tibble with 2,327 rows and 26 columns:
11-character tract GEOID.
NYC county (borough) name derived from geoid.
Census tract label as returned by the Census Bureau.
Population 25 years and over (B15003_001).
No schooling completed (B15003_002).
9th to 12th grade, no diploma (B15003_016).
Regular high school diploma (B15003_017).
Some college, 1 or more years, no degree
(B15003_019).
Associate's degree (B15003_021).
Bachelor's degree (B15003_022).
Master's degree (B15003_023).
Professional school degree (B15003_024).
Doctorate degree (B15003_025).
Margins of error for the corresponding estimates.
edu_bachelors + edu_masters + edu_professional + edu_doctorate.
Proportion of edu_total with a
bachelor's degree or higher. NA when edu_total == 0.
Proportion of edu_total whose highest
attainment is below a high school diploma.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, table B15003. Retrieved via tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Labor force status estimates from the 2020-2024 American Community Survey
5-year release for the five New York City counties at the Census tract
level. Sourced from ACS table B23025 ("Employment status for the
population 16 years and over"). Each estimate is accompanied by its 90%
margin of error, with the suffix _moe. Joins to
nycmaps::nyc_census_tracts_2020_sf on geoid.
nyc_tract_acs_employment_dfnyc_tract_acs_employment_df
A tibble with 2,327 rows and 19 columns:
11-character tract GEOID.
NYC county (borough) name derived from geoid.
Census tract label as returned by the Census Bureau.
Population 16 years and over (B23025_001).
In labor force (B23025_002).
Civilian labor force (B23025_003).
Civilian employed (B23025_004).
Civilian unemployed (B23025_005).
Armed forces (B23025_006).
Not in labor force (B23025_007).
Margins of error for the corresponding estimates.
lf_in_labor_force / lf_total. NA
when lf_total == 0.
lf_unemployed / lf_civilian. NA when
lf_civilian == 0.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, table B23025. Retrieved via tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Housing-unit counts, occupancy, tenure, value, rent, and year built from
the 2020-2024 American Community Survey 5-year release for the five New
York City counties at the Census tract level. Each estimate is
accompanied by its 90% margin of error, with the suffix _moe. Joins to
nycmaps::nyc_census_tracts_2020_sf on geoid.
nyc_tract_acs_housing_dfnyc_tract_acs_housing_df
A tibble with 2,327 rows and 23 columns:
11-character tract GEOID.
NYC county (borough) name derived from geoid.
Census tract label as returned by the Census Bureau.
Total housing units (B25001_001).
Occupied housing units (B25002_002).
Vacant housing units (B25002_003).
Occupied housing units, tenure denominator
(B25003_001).
Owner-occupied units (B25003_002).
Renter-occupied units (B25003_003).
Median value of owner-occupied housing units, dollars
(B25077_001).
Median gross rent, dollars (B25064_001).
Median year structure built (B25035_001).
Margins of error for the corresponding estimates.
tenure_owner / tenure_total. NA when
tenure_total == 0.
hu_vacant / hu_total. NA when hu_total == 0.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, tables B25001, B25002, B25003, B25035, B25064, B25077.
Retrieved via tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Income, poverty, and inequality estimates from the 2020-2024 American
Community Survey 5-year release for the five New York City counties at
the Census tract level. Each estimate is accompanied by its 90% margin of
error, with the suffix _moe. Joins to
nycmaps::nyc_census_tracts_2020_sf on geoid.
nyc_tract_acs_income_dfnyc_tract_acs_income_df
A tibble with 2,327 rows and 16 columns:
11-character tract GEOID.
NYC county (borough) name derived from geoid.
Census tract label as returned by the Census Bureau.
Median household income, inflation-adjusted dollars
(B19013_001).
Median family income (B19113_001).
Per capita income (B19301_001).
Gini index of income inequality (B19083_001).
Population for whom poverty status is determined
(B17001_001).
Population with income in the past 12 months below
the poverty level (B17001_002).
Margins of error for the corresponding estimates.
poverty_below / poverty_total. NA when
poverty_total == 0.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, tables B19013, B19113, B19301, B19083, B17001. Retrieved via
tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Language spoken at home and place of birth / citizenship from the
2020-2024 American Community Survey 5-year release for the five New York
City counties at the Census tract level. Sourced from ACS tables B16001
(language spoken at home) and B05002 (place of birth and citizenship).
Each estimate is accompanied by its 90% margin of error, with the suffix
_moe. Joins to nycmaps::nyc_census_tracts_2020_sf on geoid.
nyc_tract_acs_language_nativity_dfnyc_tract_acs_language_nativity_df
A tibble with 2,327 rows and 21 columns:
11-character tract GEOID.
NYC county (borough) name derived from geoid.
Census tract label as returned by the Census Bureau.
Population 5 years and over (B16001_001).
Speaks English only at home (B16001_002).
Speaks Spanish at home (B16001_003).
Total population, nativity universe (B05002_001).
Native-born population (B05002_002).
Foreign-born population (B05002_013).
Foreign-born, naturalized US citizen (B05002_014).
Foreign-born, not a US citizen (B05002_021).
Margins of error for the corresponding estimates.
lang_english_only / lang_total. NA when
lang_total == 0.
foreign_born / nativity_total. NA when
nativity_total == 0.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, tables B16001 and B05002. Retrieved via
tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs
Race and Hispanic-origin estimates from the 2020-2024 American Community
Survey 5-year release for the five New York City counties at the Census
tract level. Sourced from ACS table B03002 ("Hispanic or Latino origin by
race"), with B03002_001 as the population denominator. Each estimate is
accompanied by its 90% margin of error, with the suffix _moe. Joins to
nycmaps::nyc_census_tracts_2020_sf on geoid.
nyc_tract_acs_race_dfnyc_tract_acs_race_df
A tibble with 2,327 rows and 25 columns:
11-character tract GEOID.
NYC county (borough) name derived from geoid.
Census tract label as returned by the Census Bureau.
Total population (B03002_001 summary estimate).
Margin of error for total_pop.
Not Hispanic, White alone (B03002_003).
Not Hispanic, Black or African American alone
(B03002_004).
Not Hispanic, American Indian and Alaska Native alone
(B03002_005).
Not Hispanic, Asian alone (B03002_006).
Not Hispanic, Native Hawaiian and Other Pacific Islander
alone (B03002_007).
Not Hispanic, some other race alone (B03002_008).
Not Hispanic, two or more races (B03002_009).
Hispanic or Latino, any race (B03002_012).
Margins of error for the corresponding estimates.
Proportion non-Hispanic White. NA when
total_pop == 0.
Proportion non-Hispanic Black.
Proportion non-Hispanic Asian.
Proportion Hispanic or Latino.
US Census Bureau, 2020-2024 American Community Survey 5-year
estimates, table B03002. Retrieved via tidycensus::get_acs().
https://www.census.gov/programs-surveys/acs