Answer by Akshay Asati for Add correct century to dates with year provided as...
o108$fmtbirth <- format(as.Date(o108$birth, "%d%b%y"), "%Y/%m/%d")o108$fmtbirth <- as.Date(ifelse(o108$fmtbirth > Sys.Date(), format(o108$fmtbirth, "19%y-%m-%d"), format(o108$fmtbirth)))
View ArticleAnswer by Chad Johnson for Add correct century to dates with year provided as...
See response from related thread: format(as.Date("65-05-14", "%y-%m-%d"), "19%y-%m-%d")
View ArticleAnswer by G. Grothendieck for Add correct century to dates with year provided...
1) chron. chron uses 30 by default so this will convert them converting first to Date (since chron can't read those sorts of dates) reformatting to character with two digit years into a format that...
View ArticleAdd correct century to dates with year provided as "Year without century", %y
I have an file with birthdays in %d%b%y format. Some eg.# "01DEC71""01AUG54""01APR81""01MAY81""01SEP83""01FEB59"I tried to reformat the date aso108$fmtbirth <- format(as.Date(o108$birth, "%d%b%y"),...
View Article