Error in group(., supp) : could not find function "group"

I'm following along with data analytics course from google. I am getting this error when running this pipe. I can't find a solution. I need help to understand what is going on. I believe that it maybe that the function is not loaded from a package?

filtered_toothgrowth <- ToothGrowth %>%

  • filter(dose==0.5) %>%
  • group(supp) %>%
  • summarize(mean_len = mean(len,na.rm = T),.group="drop")
    Error in group(., supp) : could not find function "group"

I think you're looking for group_by, not group.

2 Likes

It should also be .groups = "drop" rather than .group = "drop"

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.