user4797853 user4797853 - 1 year ago 75
R Question

coercing to date, "%m/%d/%y" yields wrong year

I have used the following code

data$Date <- as.Date(data$Date, "%m/%d/%y")

However when I enter
the output is

Answer Source

You want as.Date(a, "%m/%d/%Y"), not as.Date(a, "%m/%d/%y").

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download