Skip to contents

Downloads national OEWS employment and wage estimates.

Usage

onet_oews_national(
  year = latest_oews_year(),
  path = NULL,
  cache_dir = tools::R_user_dir("onet2r", "cache"),
  force = FALSE,
  quiet = TRUE
)

Arguments

year

Integer estimate year. Defaults to the latest year expected to be available from the BLS public OEWS downloads.

path

Optional path to a manually downloaded OEWS ZIP, CSV, TXT, DAT, or Excel file. If supplied, no download is attempted.

cache_dir

Directory used to cache the downloaded BLS ZIP file.

force

Logical; if TRUE, re-download even when a cached file exists.

quiet

Logical; if FALSE, show download progress.

Value

A tibble of national OEWS estimates with snake_case columns.

Examples

if (FALSE) { # interactive()
onet_oews_national(2024)
}