safer use of dplyr::summarize
merge