queryCensusAPI: Census query function

Description Usage Arguments Details See Also

View source: R/census_API_functions.R

Description

Pull data from US Census API

Usage

1
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


natbprice/huntfishapp documentation built on Sept. 2, 2020, 11:01 p.m.