mutate for grouped data. closes #14