how to set a dataframe as a value in a list in r code example
Example: how to set a dataframe as a value in a list in r
mylist <- list()
mylist[[1]] <- mtcars
mylist[[2]] <- data.frame(a = rnorm(50), b = runif(50))
# the key is the [["name"]] that saves all the row (the ["name"] defaults the first)