I am new to R and I have a doubt I need to store the table that generates me after group_by (Private)%>% summarize
, to later graph it.
this is my code
install.packages("ISLR")
library(dplyr)
library(ISLR)
library(ggplot2)
College
data <- tbl_df(College)
data%>%
group_by(Private)%>%
summarise(sum_enroll = sum(Enroll, na.rm = TRUE),
count = n(),
averange_enroll = mean(Enroll, na.rm = TRUE))
Thank you