recollect {manydata} | R Documentation |
For use with dplyr::summarise, for example
recollect(x, collapse = "_")
x |
A vector |
collapse |
String indicating how elements separated |
This function operates similarly to reunite, but instead of operating on columns/observations, it pastes together unique rows/observations.
A single value
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)