Skip to content

zoo: variable gets modified at making zoo object

4 messages · Agustin Lobo, Gabor Grothendieck

#
I'm doing:
[1] "2007-01-01 00:00:00 UTC" "2007-12-31 23:30:00 UTC"

But then, while the original variable is:
Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's
-15.340  -1.615  -0.054  -0.814   0.750   8.965   11124

the variable within the zoo object is different:
Index                     alyL32007z$NEE_st
 Min.   :2007-01-01 00:00:00     0.335:    7
 1st Qu.:2007-04-02 05:52:30     0.582:    7
 Median :2007-07-02 11:45:00     0.611:    7
 Mean   :2007-07-02 11:45:00     0.063:    6
 3rd Qu.:2007-10-01 17:37:30     0.069:    6
 Max.   :2007-12-31 23:30:00   (Other): 6363
                               NA's   :11124

and I  get an error at plotting:
Error in plot.window(...) : invalid 'ylim' value

Any help appreciated,

Thanks
Agus
--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
e-mail Agustin.Lobo at ictja.csic.es
https://sites.google.com/site/aloboaleu/
#
On Mon, May 28, 2012 at 5:35 AM, Agustin Lobo
<Agustin.Lobo at ictja.csic.es> wrote:
Read the last two lines and particularly the part about posting
reproducible code.
#
Thanks for your interest.
I've put the dataframe alyL32007 in
http://dl.dropbox.com/u/3180464/alyL32007.rda

ready to be used with load()

Agus

On Mon, May 28, 2012 at 6:11 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:

  
    
#
On Mon, May 28, 2012 at 5:35 AM, Agustin Lobo
<Agustin.Lobo at ictja.csic.es> wrote:
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)