OK, this really basic. How do I add an element to a (named) list in R?
EDIT when the key name is a varibale
for (name in names(list$filenames)) {
filename <- list$filenames[[name]]
x <- read.table(filename)
ret$name <- x # I want name to be interpreted here, not use "name"
}