names(a)

On Fri, Oct 8, 2010 at 3:07 PM, Xgong <xingong98@gmail.com> wrote:

>
> Hi,
>
> I have a question about vector access. sorry if it is too basic.
>
> > a
> ae21
>    1.863869
>
> 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!
>
> Xin
> --
> 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.
>
> ______________________________________________
> 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

