Hello,
So I have the following dataframe:
From_test <- c("crayon", "crayon", "crayon", "crayon", "crayon", "crayon", "crayon", "broom", "Cairo", "caret", "carData", "caTools", "cellranger", "checkmate")
To_test <- c("broom", "BSDA", "callr", "car", "caret", "Ensemble", "caTools", "crayon", "crayon", "crayon", "crayon", "crayon", "crayon", "crayon")
Value_test <- c("69", "1", "4", "11", "1", "1", "3", "19", "1", "3", "1", "1", "58", "1")
df_test <- cbind(From_test,To_test,Value_test)
I want the list to be reduced further by an additional group by. Essentially, the from and to needs to sum up where the from to matches a to from combination of the same combination of names.
So: crayon broom of 69 should be added to broom crayon of 19 and the final output should be crayon broom with a value of 88.