powered by
Append an item to a list , creating a new list or combine two lists
mynewlist<-lappend( mylist, myitem )
list to which you will append the 2nd item
to be added to the list
outputs the appended list
# NOT RUN { mat<-replicate(100, rnorm(20)) mat2<-replicate(100, rnorm(20)) mylist<-list(mat) mylist<-lappend( mylist, mat2 ) # }
Run the code above in your browser using DataLab