[R] vector access

Xgong xingong98 at gmail.com
Fri Oct 8 20:07:52 CEST 2010


I have a question about vector access. sorry if it is too basic.

> a

My question is how to retrieve "ae21" from vector "a". here is some other
information you might need.

> str(a)
 Named num 1.86
 - attr(*, "names")= chr"ae21"
> class(a)
[1] "numeric"
> is.vector(a)
[1] TRUE
> a[[1]]
[1] 1.863869

Thank you in advance for your help!

View this message in context: http://r.789695.n4.nabble.com/vector-access-tp2968825p2968825.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list