[R] Date parsing question
tobias.verbeke@bivv.be
tobias.verbeke at bivv.be
Thu May 27 11:38:56 CEST 2004
r-help-bounces at stat.math.ethz.ch wrote on 27/05/2004 11:29:11:
> How do I parse a date "yyyymmdd"? I tried asking chron(s, "ymd") but
> that didn't work. Would the date parsing routines of the Date class of
> 1.9 grok this?
> a <- "20030527"
> as.Date(a, "%Y%m%d")
[1] "2003-05-27"
HTH,
Tobias
>
> --
> Ajay Shah Consultant
> ajayshah at mayin.org Department of Economic Affairs
> http://www.mayin.org/ajayshah Ministry of Finance, New Delhi
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list