ummel / fusionData

Data backend for fusionACS platform
https://ummel.github.io/fusionData/
GNU General Public License v3.0
2 stars 1 forks source link

Write code to process 2019 ASEC household data #64

Closed ummel closed 1 year ago

ummel commented 2 years ago

Create new local directory /survey-processed/ASEC/2019 and new .R script ASEC_2019_H_processed.R inside it. See analogous RECS and ACS processing scripts for use as templates for code development.

Ensure that your new ASEC_2019_H_processed.R script contains the following code at the very end to commit the processed data dictionary and microdata to disk for year 2019.

# Create dictionary and save to disk
dictionary <- createDictionary(data = d, survey = "ASEC", vintage = 2019, respondent = "H")
saveRDS(object = dictionary, file = "survey-processed/ASEC/2019/ASEC_2019_H_dictionary.rds")

#----------------

# Save data to disk (.fst)
fst::write_fst(x = d, path = "survey-processed/ASEC/2019/ASEC_2019_H_processed.fst", compress = 100)