dplyr
Write an R function solution(x) that uses dplyr to group x by group, sum the value column within each group, and return the largest group total.
Example
df <- data.frame(group = c("a","a","b","b"), value = c(10, 20, 5, 15))
solution(df) → 30
solution.py
14px
📊 Test Results
Run your code to see test results here.