void check_not_groups(const LazyDots& dots, const GroupedDataFrame& gdf) { int n = dots.size(); for (int i=0; i<n; i++) { if (gdf.has_group(dots[i].name())) stop("cannot modify grouping variable"); } }
void check_not_groups(const CharacterVector& result_names, const GroupedDataFrame& gdf){ int n = result_names.size() ; for( int i=0; i<n; i++){ if( gdf.has_group( result_names[i] ) ) stop( "cannot modify grouping variable" ) ; } }
void check_not_groups(const QuosureList& quosures, const GroupedDataFrame& gdf) { int n = quosures.size(); for (int i = 0; i < n; i++) { if (gdf.has_group(quosures[i].name())) stop("cannot modify grouping variable"); } }