Skip to content
Prev 42822 / 398506 Next

Extracting multiple elements from a list

Sorry, that second example should be

alist <- lapply(seq(along = alist), function(i) {
                 alist[[i]]$name <- new.names[i])
                 alist
          })

-roger
Roger D. Peng wrote: