Lets say I have a list: x <- list(mtcars, iris, cars)
x <- list(mtcars, iris, cars)
Now lets say I want to add another dataset to the list. Adding one to the end is easy. x[[4]]
x[[4]]
Yes, you use the append function. For example:
x <- list() x <- append(x = x, c(mtcars, iris, cars))