That title, yes horrible, sorry. Here' what I mean: Here's the starting dataset
C1 C2
AA H
AB M
AC M
AA H
AA L
AC L
Then it would turn into a new dataset with 4 columns:
C1 CH CM CL
AA 2 0 1
AB 0 1 0
AC 0 1 1