From ligges at statistik.uni-dortmund.de  Thu Nov  4 13:20:35 2004
From: ligges at statistik.uni-dortmund.de (Uwe Ligges)
Date: Thu Nov  4 13:20:19 2004
Subject: [Rd] error in chron object library
In-Reply-To: <1099556070.2758.13.camel@localhost.localdomain>
References: <1099519859.2847.35.camel@localhost.localdomain>	<418A07D3.7090709@statistik.uni-dortmund.de>
	<1099556070.2758.13.camel@localhost.localdomain>
Message-ID: <418A1E93.7060407@statistik.uni-dortmund.de>

juan_sr@uol.com.br wrote:

>>>I guess you get something negative,because the year you have coded is 
>>>2011 rather than 1911!
> 
> yes, you are correct!
> 
> I'm using a routine for file format transform
> 
> 
>>output_file <- leSRHchron(input_file)

So you know how to solve it now? If not, what is leSRHchron()???

Uwe Ligges



> 
> and other routine for save output_file, but, in the output_file, 
> year is save in short format. 
> 
> 
> thank you,
> 
> Juan.
> 
> Em Qui, 2004-11-04 ?s 10:43, Uwe Ligges escreveu:
> 
>>juan_sr@uol.com.br wrote:
>>
>>
>>>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
>>
>>I guess you get something negative,because the year you have coded is 
>>2011 rather than 1911!
>>But I cannot be sure because you have not specified any reproducible 
>>example. Also, you have not said what the error message is. Which 
>>version of R, chron and the OS? Please read the posting guide!
>>
>>Uwe Ligges
>>
>>
>>
>>
>>>which are the solution?
>>>
>>>Juan S. Ramseyer
>>>
>>>______________________________________________
>>>R-devel@stat.math.ethz.ch mailing list
>>>https://stat.ethz.ch/mailman/listinfo/r-devel
>>
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] error in chron object library
Uwe Ligges