r - Very simple : as.Date error with August -
i'm trying use as.date data, encounter nas specific months. created data.frame named fake test it, , gave me same error : works september not august.
fake <- c("sep 12 2014", "aug 12 2014") as.date(fake, format ="%b %d %y")
this get:
> as.date(fake, format ="%b %d %y") [1] "2014-09-12" na
i need use june data doesn't work, if july data does. can help?
the issue have french locale, uses different month , day names , abbreviations. can change english locale running:
sys.setlocale('lc_all','en_ca.utf-8');
edit: might also/instead have run (i've found necessary in rstudio):
sys.setlocale('lc_all','english');
references might useful people:
Comments
Post a Comment