John Mount shows off an infix operator for coalescing data in R:
coalesce
is a classic usefulSQL
operator that picks the first non-NULL
value in a sequence of values.We thought we would share a nice version of it for picking non-
NA
R with convenient operator infix notationwrapr::coalesce()
.
Click through for an example.