[R-sig-Geo] Antw: How convert day of the year in year/month/day

Matteo Mattiuzzi matteo.mattiuzzi at boku.ac.at
Sun Dec 2 19:15:09 CET 2012


Dear Julio,


format(as.Date("2005135","%Y%j"),"%Y/%b/%d")


Here a nice description of possibilities: http://statistics.berkeley.edu/classes/s133/dates.html


Matteo

>>> Julio Oliveira  02.12.12 18.34 Uhr >>>
Dears,

I have dates of the type YYYYddd (ex.: 2005135), where 2005 is the year and 135 is day of the year.

I need convert this format for year/month/day (%Y/%b%d).

Thanks.

Julio
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list