README.md

teref

This package provides reference tables, such as showing the correspondence between country and city names and codes across different databases and sources. This package contains three reference tables:

Installation

You can install the package from GitHub with:

# install.packages("devtools")
devtools::install_github("TourismEconomics/teref")

Organization

The tables, or code books, are stored as Rdata files in the “data” directory.

Suggestions

When using the cb_ctry or the cb_city with the Global Cities database, it is advisable to join based on the oegc_loc_code, rather than the location name, because some city-country situations have the same location name (e.g. Singapore, Luxembourg, Hong Kong, Macao).

Background

CBSA and County File Preparation

Background notes on the approach to prepare the CBSA and county file.

Terms

Codes

geoids

Census Bureau uses geographic identifiers (geoids). Census provides a description here.

Based on this page, we have the following description.

ANSI / FIPS

The American National Standards Institute (ANSI) is the sole U.S. representative and dues-paying member of the International Organization for Standardization (ISO).

American National Standards Institute codes (ANSI codes) are standardized numeric or alphabetic codes issued by the American National Standards Institute (ANSI) to ensure uniform identification of geographic entities through all federal government agencies. The American National Standards Institute (ANSI) has taken over the management of geographic codes from the National Institute of Standards and Technology (NIST). Under NIST, the codes adhered to the Federal Information Processing Standards (FIPS). ANSI now issues two types of codes. They continue to issue the commonly used FIPS codes, although the acronym has now changed to Federal Information Processing Series, because it is no longer considered the standard.

Source references

Delineation files that define CBSAs and metro divisions

Census Bureau provides delineation files here. The March 2020 version of the “Core based statistical areas (CBSAs), metropolitan divisions, and combined statistical areas (CSAs)” file was downloaded to use for definitions of CBSA. (list1_2020.csv)

Gazetteer files that provide codes for CBSAs and counties

Downloads from this page, and file record layouts from this page. The 2020 versions of the following files were used:

Tidycensus package

Downloaded the fips_codes data frame from the Tidycensus package (fips_codes_tidycensus_2021-03).



TourismEconomics/teref documentation built on Jan. 13, 2023, 3:10 a.m.