Skip to content
Prev 139859 / 398513 Next

list()

I cannot remember seeing any specific tutorial on the
use of list().  There are bits and pieces here and
there but outside of the little bit in the Intro to R
I cannot think of any.

For your specific question about names you can always
assign (new) names to a list

 # Examples
# No name
aa <- list(rnorm(10,5,2), LETTERS[1:5])
aa
# Names
names(aa)  <- c("numbers", "letters")
aa
# Change name of first element of list
names(aa)[1] <- "randoms"
aa
--- Scott Romans <scott.romans at mac.com> wrote: