get.tiger: get.tiger

Description Usage Arguments Author(s) Examples

Description

This function downloads TIGER shapefiles from the US Census. It is designed for version 2010 and later. In most cases it will not work for earlier versions. This only needs to be done once.

Usage

1
2
get.tiger(fn, extent, layer, yy, src = "tiger", version = 2010,
  loc.path = "")

Arguments

fn

The file name to be downloaded. This takes the format of tl_<version>_<extent>_<layer><year>. Either fn or the version, year and extent must be provided.

extent

A parent geography id. This can be a five-digit county fips, two-digit state fips, or "us" for the whole county. It should be provided as a character. Not all extents are available for all layers.

layer

The layer of the file to be downloaded. Examples include: state, county, tract, TABBLOCK (census block), or ZCTA5 (five digit sip code tabulation area).

yy

The two-digit year provided as a character. This is is most likely "00" or "10" for the two decennial census years.

src

The source of the file. Only TIGER is available now. This will be extended to the smaller GENZ files in the future.

version

The version that hsould be used. The default is 2010. This function has limited capabilities for versions before 2010.

loc.path

The local path where the data should be downloaded to.

Author(s)

Ander Wilson

Examples

1
2
3
4
# Download the 2010 state shape file for the entire US.
# This will download an approximately 8.3Mb file and may take a few minutes.
# This only needs to be done once.
tiger.info <- get.tiger(fn = "tl_2010_us_state10")

AnderWilson/CliMaps documentation built on May 5, 2019, 4:56 a.m.