Skip to contents

This function returns a two-column dataframe either of "Federal Information Processing Standards" (FIPS) codes and the countries to which they are associated, or state codes and their associated states. These may be a useful reference when examining GHCN site metadata.

Usage

import_ghcn_countries(
  table = c("countries", "states"),
  database = c("hourly", "daily", "monthly")
)

Arguments

table

One of "countries" or "states".

database

One of "hourly", "daily" or "monthly", which defines which of the NOAA databases to import the FIPS codes from. There is little difference between the data in the different sources, but this option may be useful if one of the services is not accessible.

Value

a tibble

Author

Jack Davison