How to Standardize or Calculate Data within Subgroups in R

Follow