get_qcew_cut: Group all the functions

View source: R/get_qcew_data.R

get_qcew_cutR Documentation

Group all the functions

Description

Group all the functions

Usage

get_qcew_cut(data_cut = 10, year_start = 1990, year_end = 2015,
  industry = "naics", frequency = "quarter",
  path_data = "~/Downloads/tmp_data/", subdir = T, download = "",
  url_wayback = "", write = F, verbose = F)

Arguments

data_cut

see vignette for a list of the cut

year_start

start year for which we want data

year_end

end year for which we want data

industry

download naics or sic data

frequency

download the quarterly files or the yearly files (default is quarterly)

path_data

where do we store the data

subdir

do we create a random dir

download

if empty do download the file from the BLS website, if not use a local version with download as path

url_wayback

allows to specify the path in internet wayback machine that kept some of the archive

write

save it somewhere

verbose

useful for looking all the downloads link (debugging mode)

Value

data.table aggregate

Note

downloads data from the Quarterly Census for Employment and Wages program, for desired years, splitting data by the aggregation level codes and exporting them into separate files sorted by year and aggregation level

: we intend to have a single file for each aggregation level, but it is more convenient to merge the individual files using an external command line tool like cat Other code: loads data.table with option to write it for a given cut

Examples

  ## Not run: 
  dt <- get_qcew_cut(data_cut = 10, year_start = 1990, year_end =1993,
                      path_data = "~/Downloads/", write = T)
  
## End(Not run)

eloualiche/entrydatar documentation built on Aug. 20, 2023, 1:56 p.m.