Posts by Macosso • 1 point
1 post
-
0
votes3
answers64
viewsA: Obtaining single records based on two columns
You can use group_by and summarise from dplyr, with the commands below library(dplyr) df1 <- data.frame( origem = c("A","A", "A", "B", "B", "B", "B"), destino=c("A","B","B","A", "A", "C","B"),…