# NOT RUN {
# load example year-list object
load(system.file("testdata", "yearList17.rda", package = "compstatr", mustWork = TRUE))
# validate
cs_validate(yearList17, year = 2017)
# standaridze May, which has 26 variables
yearList17 <- cs_standardize(yearList17, month = "May", config = 26)
# validate again to confirm fix
cs_validate(yearList17, year = 2017)
# collapse now that the data are valid
crimeReports17 <- cs_collapse(yearList17)
# }
Run the code above in your browser using DataLab