list.append: Append elements to a list

Description Usage Arguments See Also Examples

View source: R/list.insert.R

Description

Append elements to a list

Usage

1
list.append(.data, ...)

Arguments

.data

A list or vector

...

A vector or list to append after x

See Also

list.prepend, list.insert

Examples

1
2
3
4
5
6
## Not run: 
x <- list(a=1,b=2,c=3)
list.append(x,d=4,e=5)
list.append(x,d=4,f=c(2,3))

## End(Not run)

Example output

$a
[1] 1

$b
[1] 2

$c
[1] 3

$d
[1] 4

$e
[1] 5

$a
[1] 1

$b
[1] 2

$c
[1] 3

$d
[1] 4

$f
[1] 2 3

rlist documentation built on Sept. 5, 2021, 5:30 p.m.