Skip to content
Prev 141195 / 398498 Next

Extract values from a named array

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[[1]] can only extract one number at a
time.

Thanks,
Gang