[R] Method

Johannes Graumann johannes_graumann at web.de
Tue Nov 24 16:06:54 CET 2009


myVector <- c(seq(10),23,35)
length(myVector)
myVector[length(myVector)]

it's unclear to me which of the two you want ...

HTH, Joh

yonosoyelmejor wrote:

> 
> 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.




More information about the R-help mailing list