Description Usage Arguments Value Examples
Patch a current vector from a target vector.
1 | patch_vector(current, target, only_na = FALSE)
|
current |
A vector to be patched. |
target |
A patch vector. If length 1 then recycled to the length of current and only NA are patched. |
only_na |
If |
A patched vector.
1 2 3 | patchr::patch_vector(c(1, NA_real_, 3), c(4, 5, 6))
patchr::patch_vector(c(1, NA_real_, 3), c(4, 5, 6), only_na = TRUE)
patchr::patch_vector(c(1, NA_real_, 3), 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.