hi everyone.
i am dealing on a zoo-class object.i am aware of the 'min' and 'max' function
to get the minimum and the maximum values.getting these maximum and minimum
values is ont thing.but, how to get the (zoo) dates these values occur ?
in fact, in analysing a time series i am interested in
Try this:
library(zoo)
set.seed(1)
z - zoo(rnorm(100), as.Date(0) + 1:100)
mx - z[which.max(z)]; mx
1970-03-03
2.401618
coredata(mx)
[1] 2.401618
time(mx)
[1] 1970-03-03
On Sat, Feb 13, 2010 at 3:39 PM, Edouard Tallent tallen...@lycos.com wrote:
hi everyone.
i am dealing on a zoo-class
2 matches
Mail list logo