Tidying the dataset for regression use (or merge)

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) # }