get_geo_url: Construct a geography request string from a FIPS Code

Description Usage Arguments Value

View source: R/call_census_api.R

Description

Construct a geography request string from a FIPS Code

Usage

1
get_geo_url(geoid, allgeos)

Arguments

geoid

A character string with a FIPS code, between 2 and 15 digits long.

allgeos

(optional) A string identifying the type of geography for which to collect data within the the requested geoids. Must be one of c('co', 'tr', 'bg', 'bl'). For instance, if allgeos = "bg", will return all block groups within the given geoids.

Value

A string with the FIPS formatted for an API request.


gregmacfarlane/censusr documentation built on Jan. 28, 2018, 10:35 a.m.