Hello! I have the following dates / values with the Period stored in a vector s (which will go into ggplot):
The -63 refers to 1963 and -05 and -11 is 2005 and 2011 respectively. When I use the following function:
as.Date(format(as.Date(s,format="%m-%y"), "19%y%m%d"), "%Y%m%d")
I get 2063 for all the dates that should be 1963. From what I gather, R starts in 1970. I would like to modify this script to take into account dates I have in the 1900s and 2000s.
Would you happen to have any suggestions? Thank you!