[R] Re: [S] subscripts error
krcabrer at epm.net.co
Fri Aug 1 12:43:21 CEST 2003
Hope it helps.
> Hi all,
> I'm back to use S-Plus after a lot programming with SAS, so it's hard
> for me to face many simple problems....
> Let's come to what is going to make me crazy. I have a simple 1000 obs
> time series, called "x".
> If I want to compute second order differences just typing:
> but I get the following error message:
> Error in x[1:length(x) - 2]: Only 0's may be mixed with negative
> Much more interesting is that with first order differences it works
> Thanks in advance to all.
Kenneth Roy Cabrera Torres
Celular +57 (315) 405 9339
More information about the R-help