R: Prepend elements to a list

list.prepend {rlist} | R Documentation

## 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

    x <- list(a=1,b=2,c=3)
    list.prepend(x, d=4, e=5)
    list.prepend(x, d=4, f=c(2,3))

[Package rlist version 0.4.6.1 Index]