createCensusURL: Create and API call URL

Description Usage Arguments Value

Description

creates the URL with which to query the Census API for the specified variables and geographic levels. Only functional for the decennial censuses.

Usage

1
2
createCensusURL(year, vars, tract = "all", county = "all", state = "all",
  level = "county", key)

Arguments

year

must be 1990, 2000 of 2010

vars

a string or vector of strings specifying which variables to download. Must be the exact variable codes.

tract

a string or vector of strings specifying for which tracts to download data. Must be exact FIPS code.

county

a string or vector of strings specifying for which counties to download data. Must be exact FIPS code

state

FIPS code or vector of FIPS codes specifying for which states to download data.

level

can be either 'county' or 'tract', specifying at which geographic level to download data

key

your personal API key

Value

a string


RubyFore/CensusAPITools documentation built on May 9, 2019, 10:36 a.m.