Ok, JSL pros. I want to summarize data that you would find in a contingency table. Diagnosis has 2 items, TestRslt has 2 items (I know what they are if that helps so Diagnosis ={"pos", "neg"}). The following works great if my count is at least 1 in each cell of the contingency table. I get my c = [34, 35, 2, 3]. However, if I have a zero in a cell then I get c =[34, 35, 2] when I really need to have c = [34, 35, 2, 0] as I need to know I have a zero for a combination.
summarize (cross = by (Column( R["Diagnosis"] ) , Column( R["TestRslt"])),
c = count,
);