tidy_qcew: Tidying the dataset for regression use (or merge)

View source: R/get_qcew_data.R

tidy_qcewR Documentation

Tidying the dataset for regression use (or merge)

Description

Tidying the dataset for regression use (or merge)

Usage

tidy_qcew(dt, frequency = "all", industry = "naics")

Arguments

dt

input dataset from get_qcew_cut

frequency

download either quarterly, monthly or all data

industry

download naics or sic data

Value

data.table dt_tidy

Note

returns a data.table file that is formatted according to tidy standard typically this will be year x sub_year (quarter or month) x size x own_code x industry the file can be aggregated as such I do not download all the information (some location quotients and taxes are forgotten)

Examples

  ## Not run: 
  dt_tidy <- tidy_qcew(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.