powered by
Parse NAACCR-formatted dates
naaccr_date(date)
A Date vector. Any incomplete or invalid dates are converted to NA. The original strings can be retrieved with the
Date
NA
naaccr_encode function.
naaccr_encode
Character vector of dates in NAACCR format ("YYYYMMDD").
"YYYYMMDD"
input <- c("20151031", "201408 ", "99999999") d <- naaccr_date(input) d naaccr_encode(d, "dateOfDiagnosis")
Run the code above in your browser using DataLab