coalesce_xy | R Documentation |
These are wrappers around dplyr::coalesce
, designed for convenient use in
the conflict
argument of powerjoin's join functions. coalesce_xy()
is
just like dplyr::coalesce
(except it takes only 2 arguments), coalesce_yx()
looks first in y
and then in x
if y
is missing.
coalesce_xy(x, y) coalesce_yx(x, y)
x |
A vector |
y |
A vector |
A vector
coalesce_xy(c(NA, 2, 3), c(11, 12, NA)) coalesce_yx(c(NA, 2, 3), c(11, 12, NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.