Description Usage Arguments See Also Examples
(Deprecated) This is 1 of 2 coalesce functions. This one takes fields that are not the same as the proposed new column name. For example, a dataframe with fields "A", "B", and "C" can be coalesced into a field "D". If all the values need to be coalesced into an existing field such as "A", "B", and "C" to "A", use coalesce_at function instead.
1 |
data |
A dataframe or tibble. |
col |
Target column. |
... |
Other columns in addition to 'col' that will be coalesced in the correct order of precedence. |
remove |
Should columns supplied in '...' be removed in the output? |
tidyeval-compat
,select
,mutate
,coalesce
Other coalesce functions:
coalesce_at()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.