[R] adress the current index

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue May 25 09:33:45 CEST 2004


Mag. Ferri Leberl wrote:

> How can I adress the current index of a vector?

How do you define "current" in this context?
You might want to get the length() of the vector...

Uwe Ligges


> I want to work with time series and therefore give the n-th element of a 
> vector some value dependent on the value of the n-1th element.
> 
> Thank you in advance.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list