Dear list,
I have an object of class zoo and use time() to extract the times:
> class(Equiwz2010)
[1] "zoo"
> a = time(Equiwz2010)
How could I convert the elements of a to the week of the year
as integers (between 1 and 52)?
I've tried extracting the month and the day,
> as.vector(days(a[30]))
[1] "12"
> as.vector(months(a[30]))
[1] "diciembre"
but cannot find the way of getting the month as an integer
(i.e., 12 for the example above).
Thanks!
*CRISTINA*
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo