Learn R Programming

ANTsR (version 0.3.3)

lappend: Simple list append tool

Description

Append an item to a list , creating a new list or combine two lists

Usage

lappend(lst, obj)

Arguments

lst
list to which you will append the 2nd item
obj
to be added to the list

Value

outputs the appended list

Examples

Run this code

## Not run: 
# mat<-replicate(100, rnorm(20))
# mat2<-replicate(100, rnorm(20))
# mylist<-list(mat)
# mylist<-lappend( mylist, mat2 )
# ## End(Not run)

Run the code above in your browser using DataLab