ces_emp: Download national employment data from Current Employment...

Description Usage Arguments Details Examples

View source: R/ces.R

Description

ces_emp downloads pre-packaged national employment data from the CES database.

Usage

1
ces_emp(bls_key, series = "nfp", start_year, end_year, adjustment = "S")

Arguments

bls_key

BLS API key for the user. See vignette.

series

Character. Data series. Either non-farm payrolls ("nfp"), private payrolls ("private"), supersector payrolls ("super"), or sector payrolls ("sector"). Defaults to non-farm payrolls ("nfp").

start_year

Numeric. Year to start data download.

end_year

Numeric. Year to end data download.

adjustment

Character vector. Seasonal adjustment ("S") or not ("U") or both. Defaults to seasonally adjusted ("S").

Details

This function downloads and cleans pre-packaged employment data from the CES database. The user has four choices of employment data: non-farm payrolls, private payrolls, super sector payrolls, or sector payrolls. The employment data is at the national level.

Examples

1
ces_df = ces_emp(Sys.getenv("BLS_KEY"), "nfp", 2010, 2015, "U")

davidsovich/blsr documentation built on March 23, 2021, 5:31 a.m.