Package 'tinytiger'

Title: Lightweight Interface to TIGER/Line Shapefiles
Description: Download geographic shapes from the United States Census Bureau TIGER/Line Shapefiles <https://www.census.gov/geographies/mapping-files/time-series/geo/tiger-line-file.html>. Functions support downloading and reading in geographic boundary data. All downloads can be set up with a cache to avoid multiple downloads. Data is available back to 2000 for most geographies.
Authors: Christopher T. Kenny [aut, cre] , Cory McCartan [aut]
Maintainer: Christopher T. Kenny <[email protected]>
License: MIT + file LICENSE
Version: 0.0.10
Built: 2024-11-04 21:29:39 UTC
Source: https://github.com/alarm-redist/tinytiger

Help Index


Counties FIPS 2020

Description

Contains three columns:

  • state: state FIPS

  • county: county FIPS

  • name: county name

Usage

data("county_fips_2020")

Value

tibble


Download TIGER shapes for Address Ranges

Description

Download TIGER shapes for Address Ranges

Usage

tt_address_ranges(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_address_ranges("DE", county = "001")) # downloads slow on CRAN

Download TIGER shapes for American Indian / Alaska Native / Native Hawaiian Areas

Description

Download TIGER shapes for American Indian / Alaska Native / Native Hawaiian Areas

Usage

tt_ai_an_nh_areas(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_ai_an_nh_areas())

Download TIGER shapes for Alaska Native Regional Corporation (Alaska)

Description

Download TIGER shapes for Alaska Native Regional Corporation (Alaska)

Usage

tt_anrc(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_anrc()) # downloads slow on CRAN

Download TIGER shapes for Area Landmarks

Description

Download TIGER shapes for Area Landmarks

Usage

tt_area_landmarks(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_area_landmarks("DE")) # downloads slow on CRAN

Download TIGER Shapes for Area Water

Description

Download TIGER Shapes for Area Water

Usage

tt_area_water(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_area_water("DE")) # downloads slow on CRAN

Download TIGER shapes for block groups

Description

Download TIGER shapes for block groups

Usage

tt_block_groups(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_block_groups(state = "DE", county = "001")) # downloads slow on CRAN

Download TIGER shapes for blocks

Description

Download TIGER shapes for blocks

Usage

tt_blocks(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_blocks(state = "DE", county = "001"))

Work with the the tinytiger cache

Description

Functions to inspect and clear the cache. If the cache is not enabled, uses a temporary directory.

Usage

tt_cache_size()

tt_cache_clear(force = FALSE)

tt_cache_path()

Arguments

force

FALSE by default. Asks the user to confirm if interactive. Does not clear cache if force is FALSE and not interactive.

Value

For tt_cache_size(), tthe size in bytes, invisbly

For tt_cache_clear(), the path to the cache, invisbly.

For tt_cache_path(), the path to the cache

Examples

tt_cache_size()

tt_cache_clear()

tt_cache_path()

Download TIGER shapes for Core Based Statistical Areas

Description

Download TIGER shapes for Core Based Statistical Areas

Usage

tt_cbsa(year = 2021)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_cbsa()) # downloads slow on CRAN

Download TIGER shapes for Coastlines

Description

Download TIGER shapes for Coastlines

Usage

tt_coastline(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_coastline()) # downloads slow on CRAN

Download TIGER shapes for congressional districts

Description

Download TIGER shapes for congressional districts

Usage

tt_congressional_districts(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_congressional_districts()) # downloads slow on CRAN

Download TIGER shapes for Public Use Microdata Areas

Description

Download TIGER shapes for Public Use Microdata Areas

Usage

tt_consolidated_cities(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_consolidated_cities("CT")) # downloads slow on CRAN

Download TIGER shapes for counties

Description

Download TIGER shapes for counties

Usage

tt_counties(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_counties(state = "DE")) # downloads slow on CRAN

Download TIGER shapes for County Subdivisions

Description

Download TIGER shapes for County Subdivisions

Usage

tt_county_subdivisions(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_county_subdivisions("DE")) # downloads slow on CRAN

Download TIGER shapes for Combined Statistical Area

Description

Download TIGER shapes for Combined Statistical Area

Usage

tt_csa(year = 2021)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_csa())

Download TIGER shapes for Elementary School Districts

Description

Download TIGER shapes for Elementary School Districts

Usage

tt_elementary_school_districts(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_elementary_school_districts("AZ")) # downloads slow on CRAN

Download TIGER shapes for Estates (US Virgin Islands)

Description

Download TIGER shapes for Estates (US Virgin Islands)

Usage

tt_estates(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_estates()) # downloads slow on CRAN

Download TIGER Shapes for Linear Water

Description

Download TIGER Shapes for Linear Water

Usage

tt_linear_water(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_linear_water("DE")) # downloads slow on CRAN

Download TIGER shapes for Metropolitan Divisions

Description

Download TIGER shapes for Metropolitan Divisions

Usage

tt_metropolitan_divisions(year = 2021)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_metropolitan_divisions()) # downloads slow on CRAN

Download TIGER shapes for Military Installations

Description

Download TIGER shapes for Military Installations

Usage

tt_military(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_military()) # downloads slow on CRAN

Download TIGER shapes for New England City and Town Area

Description

Download TIGER shapes for New England City and Town Area

Usage

tt_new_england_cities(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_new_england_cities()) # downloads slow on CRAN

Download TIGER shapes for New England City and Town Area Divisions

Description

Download TIGER shapes for New England City and Town Area Divisions

Usage

tt_new_england_city_divisions(year = 2021)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_new_england_city_divisions()) # downloads slow on CRAN

Download TIGER shapes for New England Combined City and Town Areas

Description

Download TIGER shapes for New England Combined City and Town Areas

Usage

tt_new_england_combined_areas(year = 2021)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_new_england_combined_areas()) # downloads slow on CRAN

Download TIGER shapes for Places

Description

Download TIGER shapes for Places

Usage

tt_places(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_places("DE")) # downloads slow on CRAN

Download TIGER shapes for Point Landmarks

Description

Download TIGER shapes for Point Landmarks

Usage

tt_point_landmarks(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_point_landmarks("DE")) # downloads slow on CRAN

Download TIGER shapes for Polygon Edges

Description

Download TIGER shapes for Polygon Edges

Usage

tt_polygon_edges(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_polygon_edges("DE", county = "001")) # downloads slow on CRAN

Download TIGER shapes for Polygon Faces

Description

Download TIGER shapes for Polygon Faces

Usage

tt_polygon_faces(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_polygon_faces("DE", county = "001")) # downloads slow on CRAN

Download TIGER shapes for Primary Roads

Description

Download TIGER shapes for Primary Roads

Usage

tt_primary_roads(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_primary_roads()) # downloads slow on CRAN

Download TIGER shapes for Primary and Secondary Roads

Description

Download TIGER shapes for Primary and Secondary Roads

Usage

tt_primary_secondary_roads(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_primary_secondary_roads("DE")) # downloads slow on CRAN

Download TIGER shapes for Public Use Microdata Areas

Description

Download TIGER shapes for Public Use Microdata Areas

Usage

tt_puma(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_puma("DE")) # downloads slow on CRAN

Download TIGER shapes for Rails

Description

Download TIGER shapes for Rails

Usage

tt_rails(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_rails()) # downloads slow on CRAN

Download TIGER shapes for Roads

Description

Download TIGER shapes for Roads

Usage

tt_roads(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_roads("DE")) # downloads slow on CRAN

Download TIGER shapes for Secondary School Districts

Description

Download TIGER shapes for Secondary School Districts

Usage

tt_secondary_school_districts(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_secondary_school_districts("AZ")) # downloads slow on CRAN

Download TIGER shapes for lower state legislative districts

Description

Download TIGER shapes for lower state legislative districts

Usage

tt_state_leg_lower(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_state_leg_lower("DE")) # downloads slow on CRAN

Download TIGER shapes for upper state legislative districts

Description

Download TIGER shapes for upper state legislative districts

Usage

tt_state_leg_upper(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_state_leg_lower("DE")) # downloads slow on CRAN

Download TIGER shapes for states

Description

Download TIGER shapes for states

Usage

tt_states(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_states())

Download TIGER shapes for Subbarrios (Puerto Rico)

Description

Download TIGER shapes for Subbarrios (Puerto Rico)

Usage

tt_subbarrios(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_subbarrios()) # downloads slow on CRAN

Download TIGER shapes for tracts

Description

Download TIGER shapes for tracts

Usage

tt_tracts(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_tracts(state = "DE", county = "001")) # downloads slow on CRAN

Download TIGER shapes for Tribal Block Groups

Description

Download TIGER shapes for Tribal Block Groups

Usage

tt_tribal_block_groups(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_tribal_block_groups())

Download TIGER shapes for American Indian Tribal Subdivision National

Description

Download TIGER shapes for American Indian Tribal Subdivision National

Usage

tt_tribal_subdivisions(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_tribal_subdivisions())

Download TIGER shapes for Tribal Tracts

Description

Download TIGER shapes for Tribal Tracts

Usage

tt_tribal_tracts(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_tribal_tracts())

Download TIGER shapes for Urban Area

Description

Download TIGER shapes for Urban Area

Usage

tt_uac(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_uac()) # downloads slow on CRAN

Download TIGER shapes for Unified School Districts

Description

Download TIGER shapes for Unified School Districts

Usage

tt_unified_school_districts(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_unified_school_districts("DE")) # downloads slow on CRAN

Download TIGER shapes for Voting Districts

Description

Download TIGER shapes for Voting Districts

Usage

tt_voting_districts(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_voting_districts("DE", county = "001")) # downloads slow on CRAN

Download TIGER shapes for Zip Code Tabulation Areas

Description

Download TIGER shapes for Zip Code Tabulation Areas

Usage

tt_zcta(year = 2024)

Arguments

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

Examples

# takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_zcta()) # downloads slow on CRAN