r - how can i modify dmy() in lubridate function to output the 1900s instead of the 2000s? -


i have data show last 2 digits of year. using dmy("090965") output "2065-09-09". "1965-09-09". how modify output?

one way of doing things:

a=dmy("090965")  year(a)=1965    # or if have vector multiple years:  year(a)=year(a)-100  > [1] "1965-09-09" 

Comments