Hi Michael,

Thanks for your kindly help. Problem solved!

Just curious why you prefer "xts" rather than "zoo"? Is "xts" more powerful?

BTW,  It's my mistake that incorrectly type the code. ;-)

Cheers,
Richard


R. Michael Weylandt <michael.weyla...@gmail.com> wrote:
> 
> I'd suggest you look into the xts class and write
> 
> require(xts)
> xts = as.xts(1:5,Sys.Date()+1:5)
> time(xts)[xts==3]
> 
> By the way, your code isn't pastable for me: not sure why.
> 
> Michael Weylandt
> 


-----
Richard Ma
PhD student, Ecology & Remote Sensing
Climate Change Cluster, Department of Environment Science
University of Technology, Sydney
http://everydropr.wordpress.com
--
View this message in context: 
http://r.789695.n4.nabble.com/How-to-get-the-date-of-specific-value-within-a-zoo-object-tp3731885p3732108.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to