You can overwrite the first group_by
with a new one.
yts %>%
group_by(Response, Education) %>%
group_by(Education)
# A tibble: 9,794 × 31
# Groups: Education [2]
YEAR LocationAbbr LocationDesc TopicType TopicDesc MeasureDesc DataSource
<dbl> <chr> <chr> <chr> <chr> <chr> <chr>
1 2015 AZ Arizona Tobacco Use… Cessatio… Percent of… YTS
2 2015 AZ Arizona Tobacco Use… Cessatio… Percent of… YTS
3 2015 AZ Arizona Tobacco Use… Cessatio… Percent of… YTS
4 2015 AZ Arizona Tobacco Use… Cessatio… Quit Attem… YTS
5 2015 AZ Arizona Tobacco Use… Cessatio… Quit Attem… YTS
6 2015 AZ Arizona Tobacco Use… Cessatio… Quit Attem… YTS
7 2015 AZ Arizona Tobacco Use… Cigarett… Smoking St… YTS
8 2015 AZ Arizona Tobacco Use… Cigarett… Smoking St… YTS
9 2015 AZ Arizona Tobacco Use… Cigarett… Smoking St… YTS
10 2015 AZ Arizona Tobacco Use… Cigarett… Smoking St… YTS
# ℹ 9,784 more rows
# ℹ 24 more variables: Response <chr>, Data_Value_Unit <chr>,
# Data_Value_Type <chr>, Data_Value <dbl>, Data_Value_Footnote_Symbol <chr>,
# Data_Value_Footnote <chr>, Data_Value_Std_Err <dbl>,
# Low_Confidence_Limit <dbl>, High_Confidence_Limit <dbl>, Sample_Size <dbl>,
# Gender <chr>, Race <chr>, Age <chr>, Education <chr>, GeoLocation <chr>,
# TopicTypeId <chr>, TopicId <chr>, MeasureId <chr>, …