Applying spechar and nz to manipulated elements
Quantum does not apply spechar, nz, nzrow and nzcol to elements created using manipulation. Also, if either nzcol or nzrow is in effect and an axis contains all-zero elements, those elements are not suppressed if the axis is tabulated against one containing manipulated elements.
To have Quantum treat manipulated elements the same as other elements with regard to special characters for zero or near-zero values and suppression of all zero elements, place the keyword manipz on the a, sectbeg, flt or tab statement.
You can revert to the default method of ignoring manipulated elements by placing a nomanipz option at the point at which you want this to happen. You can switch methods many times in a run if you want.
Here is the same table produced with and without manipz. The specification used is:
tab q10 sex;nz
1 q10
n10Base
n01First;c=c8'0/1'
n01Second;c=c8'2/3'
n01First + Second;ex=@2+@1
n01Third (all zero);c=c8'4/5'
n01Fourth (all zero);c=c8'6/9'
n01Third + Fourth;ex=@2+@1
l sex
col 15;Base;Male;Female
The tables produced without manipz are as follows. The Third and Fourth elements created with n01s have been suppressed but the Third + Fourth element that is created by manipulating those elements is not.
| Base | Male | Female |
Base | 89 | 43 | 46 |
First | 22 | 15 | 7 |
Second | 67 | 28 | 39 |
First + Second | 89 | 43 | 46 |
Third + Fourth | 0 | 0 | 0 |
The same table produced with manipz suppresses not only the all-zero n01s but also the all-zero manipulation element:
| Base | Male | Female |
Base | 89 | 43 | 46 |
First | 22 | 15 | 7 |
Second | 67 | 28 | 39 |
First + Second | 89 | 43 | 46 |
See also