View source: R/wrangling_data.R
coalesce_rows | R Documentation |
For use with dplyr::summarise, for example
coalesce_rows(x)
x |
A vector |
This function operates similarly to coalesce for columns, that is picking the first non-missing observation, but on observations rather than variables.
A single value
https://stackoverflow.com/questions/40515180/dplyr-how-to-find-the-first-non-missing-string-by-groups
dplyr::reframe(emperors$wikipedia, coalesce_rows(emperors$wikipedia))
coalesce_rows(emperors$wikipedia$Begin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.