Poke values into a vector
These tools are for R experts only. They copy elements from
x by mutation. You should only do this if you own
i.e. if you have created it or if you are certain that it doesn't
exist in any other context. Otherwise you might create unintended
side effects that have undefined consequences.
vec_poke_n(x, start, y, from = 1L, n = length(y))
vec_poke_range(x, start, y, from = 1L, to = length(y) - from + 1L)
The destination vector.
The index indicating where to start modifying
The source vector.
The index indicating where to start copying from
How many elements should be copied from
The index indicating the end of the range to copy from