ID EN
Vector & List

append

R Base 3.6.2

Add elements to a vector.

Syntax

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

Arguments

Parameter Description
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.

Return Value

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

Examples

Example
R
# NOT RUN {
append(1:5, 0:1, after = 3)
# }