I am Peruvian and I'm learning to program in R
when I convert a character to date using the function as.Date I get NA. This is because the abbreviated month does not have a point (Jul. Sep.)
fecha<-c("06-jul-2015","06-sep-2012")
as.Date(fecha, format="%d-%b-%Y")
[1] NA NA
Please. How I can do to R consider the abbreviated month without the point?
Thank You So Much
Sys.getlocale()
and show us the output. You can also runstrftime(sprintf('2015-%02d-01',1:12),format='%b')
to get your locale's abbreviations directly. – bgoldst