[Rd] error in chron object library

From: <juan_sr_at_uol.com.br>
Date: Thu 04 Nov 2004 - 09:11:00 EST

Times series of rain and discharge in hydrologic - stations has above 95 years of daily records.
In the temporal series over "serie" dataframe, using chron's object:

> library(chron) # load chron library

> length(serie$data)

[1] 27182

> serie$data[length(serie$data)]

[1] (85-12-31 00:00:00)                   # 1985-dez-31 00:00:00hs


> serie$data[1]
[1] (11-08-01 00:00:00) # 1911-aug-01 00:00:00hs

> serie$data[length(serie$data)] -serie$data[1] # error, correct value
is: 27181

which are the solution?

Juan S. Ramseyer



R-devel@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Nov 04 12:16:59 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:01:05 EST