consolidate.Rd
For use with dplyr::summarise, for example
consolidate(x)
x | A vector |
---|
https://stackoverflow.com/questions/40515180/dplyr-how-to-find-the-first-non-missing-string-by-groups
A single value
This function operates similarly to coalesce for columns, that is picking the first non-missing observation, but on observations rather than variables.
# NOT RUN { summarise(mtcars, consolidate(.)) # }