New lists may be formed from existing objects by the function list(). An assignment of the form
Lst <- list(name1 =object1 , name2 =object2 , ...,namem =objectm )
sets up a list Lst of m components using object1 , ..., objectm for the components and giving them names as specified by the argument names, (which can be freely chosen). If these names are omitted, the components are numbered only. The components used to form the list are copied when forming the new list and the originals are not affected.
Lists, like any subscripted object, can be extended by specifying additional components. For example
Lst[5] <- list(matrix=Mat)