append

Update: 01/02/2014

Key words: appendR ManualR Reference Index

append    Vector Merging

Description

Add elements to a vector.

Usage

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

Arguments

xthe vector to be modified.
valuesto be included in the modified vector.
aftera subscript, after which the values are to be appended.

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)

R Tutorial

Loading...