coalesce_across | R Documentation |
Given a set of data frame columns (potentially using
<tidy-select>
), coalesce_across()
finds the first non-missing value at each position.
coalesce_across(.cols)
.cols |
< |
coalesce_across()
is a wrapper around
coalesce()
that allows specification of columns
using <tidy-select>
semantics. It does this using
across()
, which means it is only designed to work
inside dplyr verbs. In other cases, just use coalesce()
.
A vector the same length as the first ...
argument with
missing values replaced by the first non-missing value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.