Pull data from US Census API

queryCensusAPI(data_url, key, get, region, numeric = TRUE)

Arguments

data_url

The url root of the api including the '?'

key

API key

region

A region specification containing a 'for:' and possibly an 'in:'

vars

A character vector of variable names

Details

For information on the US Census API see https://www.census.gov/developers/.

This function is a modified version of the code published here: http://rstudio-pubs-static.s3.amazonaws.com/19337_2e7f827190514c569ea136db788ce850.html

See also

Other census functions: runCensusAPIQueries, statePop, vecToChunk