r.insert(r.end(), x.begin(), x.end()); code example Example: r append to vector append(x, values, after = length(x))