group vars in Rcpp