I cant quite work this one out.
How do I go from:

```
Visit Test
1     A
1     B
2     A
2     C
3     B

```

To:

```
Visit A     B     C
1     TRUE  TRUE  FALSE
2     TRUE  FALSE TRUE
3     FALSE TRUE  FALSE

```