Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

prepend

Prepend a vector


Description

Deprecated lifecycle

Vector functions are now out of scope for rlang. They might be revived in the vctrs or funs packages.

Usage

prepend(x, values, before = 1)

modify(.x, ...)

Arguments

x

the vector to be modified.

values

to be included in the modified vector.

before

a subscript, before which the values are to be appended.

.x

A vector to modify.

...

<dynamic> List of elements to merge into .x. Named elements already existing in .x are used as replacements. Elements that have new or no names are inserted at the end.


rlang

Functions for Base Types and Core R and 'Tidyverse' Features

v0.4.11
MIT + file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], mikefc [cph] (Hash implementation based on Mike's xxhashlite), Yann Collet [cph] (Author of the embedded xxHash library), RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.