left_join_with_null | R Documentation |
left_join_with_null
does not throw an error if x
or y
is
a NULL. In that case it returns the data frame that is not NULL. If both are
NULL, then NULL is returned. This function is based on the
left_join
function from dplyr package.
left_join_with_null(x = NULL, y = NULL, by = NULL)
x |
Data frame |
y |
Data frame |
by |
Character vector of common columns for |
Used in scripts: Robust function: TRUE
If both x
and y
is NULL, then NULL is returned. If
either x
or y
is NULL, the non-NULL object is returned.
Finally, if both x
and y
is not NULL, then the merged data
frame is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.