Mutate within groups

mutate_by(.data, group_vars, ...)