Add elements to a vector.

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

the vector the values are to be appended to.

to be included in the modified vector.

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

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

x

values

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

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

Run the code above in your browser using DataLab