[R] extract a value from vector
mothsailor at googlemail.com
Tue Sep 12 20:19:20 CEST 2006
I'm not quite sure what you mean. To get the first item in a vector you use
Is that what you want?
On 12/09/06, Ethan Johnsons <ethan.johnsons at gmail.com> wrote:
> A quick question, please!
> How do you extract a certain value of vector?
> i.e. x = c(2,5,3,6,21,3,6,24, ....)
> How do you get the 1st one (which is 2); the 5th one (which is 21); etc?
> thx much,
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP
More information about the R-help