[R] Method

Keo Ormsby keo.ormsby2 at gmail.com
Tue Nov 24 16:20:30 CET 2009


yonosoyelmejor escribió:
> Hello, i would like to ask you another question. Is exist anymethod to
> vectors that tells me the last element?That is to say,I have a vector, I
> want to return the position of last element. I hope having explained.
>
> A greeting,
> Ignacio.
>   
vect1 <- c(1,2,3)
vect1[length(vect1)]

Hope this helps.

Saludos,
Keo.




More information about the R-help mailing list