How to Standardize or Calculate Data Within Subgroups in R

Follow