dplyr
Write an R function solution(x) that uses dplyr to return the number of distinct values in the column group of the data frame x.
Example
df <- data.frame(group = c("a", "b", "a", "c"))
solution(df) → 3
solution.py
14px
📊 Test Results
Run your code to see test results here.