Posts by Gustavo Carvalho • 1 point
1 post
-
0
votes3
answers152
viewsA: Aggregate string in R
No need for anything but the police: dados %>% group_by(cidade) %>% summarise_all(function(x) { res <- x[!is.na(x)] ifelse(length(res) == 0, NA_character_, res) })…
ranswered Gustavo Carvalho 1