Continuing from my previous post, Now I want to group by ID (only for Column 3) and calculate the median of the column (Point_B) and then subtract the median value with every value in the column (Point_B) to its respective group. NA's should still be returned. , Now I want to