Skip to content
Prev 68669 / 398506 Next

its package: inexplicable date-shifting ?!

Can someone please explain to me why 
the dates get shifted by one day 
when I create an its ( irregular time-series ) 
object from a matrix for which I've
assigned row names.
E.g. in the example run below, 
why does the its object have dates
one-shifted from my original dates?
[,1]
[1,]    1
[2,]    2
[1] "%Y%m%d"
[,1]
20040813    1
20040814    2
1
20040812 1
20040813 2


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Berton Gunter
Sent: Wednesday, April 27, 2005 1:28 PM
To: ltorgo at liacc.up.pt
Cc: r-help at stat.math.ethz.ch
Subject: RE: [R] Recursive calculation of a series of values


Algebra:
cumprod(1+v)*x[0]

-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
 
"The business of the statistician is to catalyze the scientific learning
process."  - George E. P. Box
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html