I have a data frame with a column containing dates in the format of mm/yy. However, the column is character type and I would like to change it to a date for plotting purposes.
Example code below:
x <- c("01/20","02/20","03/20")
as.Date(x,format = "%m/%y")
I get the following error:
Error in charToDate(x) :
character string is not in a standard unambiguous format
I would like to use as.Date if possible.