append: Vector Merging

View source: R/utils-base-wrappers.R

appendR Documentation

Vector Merging

Description

Add elements to a vector.

Usage

append(x, values, after = length(x), ...)

Arguments

x

the vector the values are to be appended to.

values

to be included in the modified vector.

after

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

...

Additional arguments passed to or from other methods.

Value

A vector containing the values in x with the elements of values appended after the specified element of x.

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.

Examples

append(1:5, 0:1, after = 3)

einops documentation built on Sept. 9, 2025, 5:29 p.m.