Learn R Programming

rlist (version 0.4.6.1)

list.prepend: Prepend elements to a list

Description

Prepend elements to a list

Usage

list.prepend(.data, ...)

Arguments

.data

A list or vector

...

The vector or list to prepend before x

See Also

list.append, list.insert

Examples

Run this code
# NOT RUN {
x <- list(a=1,b=2,c=3)
list.prepend(x, d=4, e=5)
list.prepend(x, d=4, f=c(2,3))
# }

Run the code above in your browser using DataLab