[R] zoo: variable gets modified at making zoo object
Gabor Grothendieck
ggrothendieck at gmail.com
Tue May 29 01:29:33 CEST 2012
On Mon, May 28, 2012 at 5:35 AM, Agustin Lobo
<Agustin.Lobo at ictja.csic.es> wrote:
> I'm doing:
>
>> alyL32007z <- zoo(alyL32007,alyL32007$time)
The POSIXct time is erroneously being used twice: once as part of the
data and once as the index. It should be:
alyL32007z <- zoo(alyL32007[-1], alyL32007$time)
or
alyL32007z <- read.zoo(alyL32007, FUN = identity)
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
More information about the R-help
mailing list