[R] Extract values from a named array
gangchen6 at gmail.com
Mon Apr 7 19:07:11 CEST 2008
Thanks a lot for the suggestions!
On 4/7/08, Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote:
> Gang Chen wrote:
> > Sorry for this dumb question. Suppose I have a named array ww defined as
> > ww <- 1:5
> > names(ww) <- c("a", "b", "c", "d", "e")
> > How can I extract the whole array of numbers without the names?
> > ww[1:5] does not work while ww[] can only extract one number at a
> > time.
> Use as.vector to strip these attributes:
More information about the R-help