Given the following dictionart (98h):

```
q) d
eid     kind      value1     value2   value3
------------------------------------------------------
0       `D        0          1        9
1       `A        1          0        0N

```

How can one perform (modify/structure) the following selection:

```
q) d[`eid`kind`value1`value2`value3`value4] //thanks for correction

```

which returns:

```
 0  1
`D `A
 0  1
 1  0
 9  0N
 `long$()

```

such that the selection returns the following:

```
 0  1
`D `A
 0  1
 1  0
 9  0
 0  0

```

i.e. the nulls in all forms i.e. column missing and null values are replaced with 0;

I have tried using `where` however this doesn't work for missing columns i.e.

```
 00b
 00b
 00b
 00b
 01b
 `boolean$()

```

I have also tried using fill i.e. 0^.

Edit: The main problem here is that I have zero prior knowledge of the matrix that is derived from the table i.e. it could be like the following

```
 00b
 01b
 00b
 `boolean$()
 00b
 00b

```

What is the best method to achieve this functionality?
Thanks in advance for your guidance.