jolts_download: Download data from the Job Opening and Labor Turnover survey...

Description Usage Arguments Details Value Examples

View source: R/jolts.R

Description

jolts_download retrieves and downloads data from the Job Opening and Labor Turnover survey (JOLTS) database.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
jolts_download(
  bls_key,
  start_year,
  end_year,
  adjustment,
  industries,
  data_types,
  data_levels,
  states = "00",
  areas = "00000",
  sizes = "00",
  clean = TRUE
)

Arguments

bls_key

BLS API key for the user. See vignette.

start_year

Year to start data download.

end_year

Year to end data download.

adjustment

Character vector. Seasonal adjustment ("S") or not ("U") or both.

industries

Character vector. See vignette. List of available industries given in jolts_codes_list dataset.

data_types

Character vector. Desired output. See series vignette. List of available data_types given in jolts_codes_list dataset.

data_levels

Character vector. Levels ("L") or rates ("R") or both.

states

Option character vector. See vignette. Leave blank for total US. List of states given in jolts_codes_list dataset.

areas

Optional character vector. See vignette. Leave blank for total US. List of areas in jolts_codes_list dataset.

sizes

Optional character vector. See vignette. Leave blank for all. List in jolts_codes_list dataset.

clean

Optional logical. Whether to clean the data into usable format or not. Defaults to TRUE.

Details

This function constructs BLS series IDs for a chosen set of parameters and then downloads the data from the JOLTS database. This function also cleans the data and appends on identifiers for easy panel formatting. Reflects the October 2020 update to JOLTS data series.

Value

Cleaned data frame of JOLTS data.

Examples

1
Add in from our other exercise.

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