Calculating Z-scores using Data Subsets by Row

My big hint is to use the group_by function. This looks a bit like a homework problem so I don't think it's appropriate to provide a direct solution. FAQ: Homework Policy