geography: Geography codes by name or ID

Description Usage Arguments Details Value Author(s) References

Description

Return geographical names and codes by geography name or ID

Usage

1
geography(geographyType, geographyId=NULL, geographyName=NULL, fips=NULL, all=NULL, ...)

Arguments

geographyType

A character string containing an allowed geography type: “censusplace”, “county”, “msa”, “usf”, “statesenate”, “statehouse”, “congdistrict”, “tribalnation”.

geographyId

A numeric or character value specifying a geography ID for the specified geographyType, possibly as returned by geography.

geographyName

A character string containing a place name for the specified geographyType.

fips

A FIPS state code to narrow the search results, possibly as returned by geography.

all

A logical indicating whether to return all results.

...

Additional arguments passed to curlPerform.

Details

This returns basic identifying information about a place, based on geographyType and either geographyName or geographyId, possibly within a state specified by fips. The response is similar to what is returned by census.

Value

A list containing the API response, transformed by fromJSON.

Author(s)

Thomas J. Leeper

References

Lookup by geography ID Lookup by geography type Lookup by geography name Lookup by type, within state Lookup by geography type, within state


rOpenGov/usbroadband documentation built on May 26, 2019, 8:50 p.m.