Learn R Programming

rlist (version 0.2.2)

list.prepend: Prepend a list

Description

Prepend a list

Usage

list.prepend(.data, ...)

Arguments

.data
list
...
The vector or list to prepend before x

Examples

Run this code
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