I'm looking for an `awk` solution to get from this table (with x number of names in column 1, and different lengths of column 2 which is ";" separated):

dataframe.txt:

```
name1 1;2;4;8
name2 4;5;7
name3 8
name4 11;12
namex 20;21

```

to this matrix with present `1` and non present `0`:

matrix.txt:

```
        1 2 4 5 7 8 11 12 20 21
name1   1 1 1 0 0 1 0  0  0  0 
name2   0 0 1 1 1 0 0  0  0  0
name3   0 0 0 0 0 1 0  0  0  0
name4   0 0 0 0 0 0 1  1  0  0
namex   0 0 0 0 0 0 0  0  1  1

```