censusapi 0.7.1 2020-10-14

  • Removes listCensusMetadata() and masterlist examples that used Business Dynamic Statistics endpoints, which were recently deprecated.

censusapi 0.7.0 2020-09-07

  • Adds show_call option to getCensus(), which shows the underlying API call (otherwise only shown on errors) and link to package documentation when used.
  • Converts improperly formatted string “N/A” and “NULL” values from underlying Census data to true NA values.
  • Improves parsing of columns as numeric or character, specifically:
    • Keeps 2017 NAICS variables as characters, instead of erroneously converting to numeric.
    • Parses endpoint numeric variables with all-character variable names as numeric for several popular endpoints: SAHIE, SAIPE, ZBP, CBP, PEP and Decennial Response Rates.
  • Removes examples from deprecated 1990 and 2000 Decennial endpoints.

censusapi 0.6.1 Unreleased

  • Updates web link to FIPS codes reference after Census website reorganization.
  • Adds examples for Decennial Census response rates, updates several examples to retrieve newer data.
  • Removes example masterlist from package itself due to size, online only.

censusapi 0.6.0 2019-04-13

  • Allows the use of miscellaneous paramaters in getCensus(). This allows users to specify any valid API argument name and pass it a value, giving full access to all of the underlying Census Bureau APIs.
  • Adds a group parameter in listCensusMetadata(). This allows users to get variable metadata for a specified variable group.
  • Improves internal logic in listCensusMetadata().
  • Add documentation and examples using miscellaneous paramaters.
  • Returns underlying API call in error messages, particularly useful for users needing from the Census Bureau.
  • Specifies tract in block group example due to underlying API changes.
  • Adds Contributor Code of Conduct.

censusapi 0.5.0 Unreleased

  • Makes region an optional argument in getCensus, rather than required.
  • Pads fips codes stored in fips dataset with zeroes.

censusapi 0.4.1 2018-08-19

  • Adds groups type option to listCensusMetadata.
  • Fixes bug in listCensusMetadata variables call caused by an underlying Census API change, which renamed validValues to values for some endpoints.
  • Converts variable metadata columns from factors to characters.
  • Applies numeric conversion exclusions to all API endpoints.
  • Improves language surrounding error messages that the Census Bureau returns.
  • Updates 2010 Decennial Census examples to use new 2010 dec/sf1 endpoint, which will replace 2010 sf1 endpoint on August 30, 2018.

censusapi 0.4.0 Unreleased

censusapi 0.3.0 2018-05-02

  • Does not convert ACS annotation flag variables into numeric columns.
  • Puts lowercase variable name columns first (geographies), rather than all non-numeric columns.
  • Changes all punctuation in returned column names into underscores, removing repeated underscores and trailing punctuation.
  • Uses consistent spacing in examples.
  • Updates examples using ACS data to latest year using new acs/acs5 endpoint and adds variable group examples.

censusapi 0.2.1 2017-08-01

  • Fixes bug in listCensusMetadata variables call caused by underlying Census API changes.

censusapi 0.2.0 2017-06-06

  • Updated examples, documentation, vignette.

censusapi 0.1.2 Unreleased

  • Fixes bug that caused single-row responses to throw an error

censusapi 0.1.1 Unreleased

  • Uses https rather than http for requests. The Census Bureau announced that their APIs will be https-only beginning on August 28, 2017.
  • Removes XML dependency by parsing .json instead of .html metadata.
    • Note: this change has generally increased the run time for retrieving variable metadata with listCensusMetadata. For most APIs, this function will run in under one second. A lag may be noticeable for the American Community Survey APIs, which each have more than 40,000 variables. Improvements are planned in future releases.
  • listCensusMetadata allows full word or single letter argument in type parameter

censusapi 0.1.0.9001 Unreleased

  • Scrapes http://api.census.gov/data.json rather than .html in listCensusApis, in starts of removing XML dependency. The .json data also includes several fields not present in the .html file, the most useful of which are added to the returned data frame.
  • Changes dataset used in listCensusMetadata examples, mainly for build/checks speed.

censusapi 0.1.0.9000 Unreleased

  • Set getCensus(key) argument’s default value to be CENSUS_KEY in .Renviron. Explicitly encourages Census key to be added to .Renviron. (Users can always override this with any given input.)
  • Parses HTML response code. This is particularly important for the response that the Census APIs provided for invalid keys.

censusapi 0.1.0 Unreleased

  • Removes fips code 72 (Puerto Rico) from included fips dataset because Puerto Rico is not included in most Census API datasets.
  • Changes census key references in examples to Sys.getenv(“CENSUS_KEY”).