# NOT RUN {
# load example year-list object
load(system.file("testdata", "yearList17.rda", package = "compstatr", mustWork = TRUE))
# extract May
may17 <- cs_extract_month(yearList17, month = 5)
# replace
yearList17 <- cs_replace_month(yearList17, month = 5, monthData = may17)
yearList17 <- cs_replace_month(yearList17, month = "May", monthData = may17)
# }
Run the code above in your browser using DataLab