Like dplyr::coalesce()
, geo_coalesce()
returns the first non-missing
element (rowwise). It is useful for replacing empty and missing values
with a default.
geo_coalesce(x, ...)
x, ... | Vectors that will be recycled to a common length. These don't
necessarily need to be geovctrs, but do need methods for |
---|
A vector with the type of the first argument.
#> <wk_wkt[3]> #> [1] POINT (30 10) POINT (0 0) POINT (0 0)