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.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.