powered by
For use with dplyr::summarise, for example
recollect(x, collapse = "_")
A single value
A vector
String indicating how elements separated
This function operates similarly to reunite, but instead of operating on columns/observations, it pastes together unique rows/observations.
# \donttest{ data <- data.frame(ID = c(1,2,3,3,2,1)) data1 <- data.frame(ID = c(1,2,3,3,2,1), One = c(1,NA,3,NA,2,NA)) recollect(data$ID) recollect(data1$One) # }
Run the code above in your browser using DataLab