lappend: Simple list append tool

View source: R/lappend.R

lappendR Documentation

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

Author(s)

Avants BB, the internet

Examples


mat <- replicate(100, rnorm(20))
mat2 <- replicate(100, rnorm(20))
mylist <- list(mat)
mylist <- lappend(mylist, mat2)
mylist <- lappend(mat2, mylist)
mylist <- lappend(mylist, mylist)
lappend(1, 1)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.