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.


censusr documentation built on May 2, 2019, 9:41 a.m.