When I run the following command I get an annoying message that says: summarise() ungrouping output (override with .groups argument).
I was wondering how I can eliminate this message in my data below?
library(tidyverse)
hsb <- read.csv('https://raw.githubusercontent.com/rnorouzian/e/master/hsb.csv')
ave_cluster_n <- as_vector(hsb %>% dplyr::select(sch.id) %>% group_by(sch.id) %>% summarise(n=n()) %>% ungroup() %>% dplyr::select(n))
# `summarise()` ungrouping output (override with `.groups` argument) # How to eliminate this message