how to add a vector to the end of another in r code example Example: r append to vector append(x, values, after = length(x))