coalesce | R Documentation |
A simple wrapper around fcoalesce
.
coalesce(new, old)
new |
the newer vector to be coalesced into. Will take priority if both columns have values at the same position. |
old |
the older vector to be coalesced. |
a vector of the type of new
x = c(11L, NA, 13L, NA, 15L, NA)
y = c(NA, 12L, 5L, NA, NA, NA)
nsqipr:::coalesce(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.