data_cards=crosstab(cards_data, row.vars="flag1", col.vars="flag2", type="f")
flag2 <=33% 0% 100% 34-67% 68-99% Sum
flag1
1-2 0 3 6 6 0 104
10+ 5 9 33 2 39 88
3-5 7 13 12 4 24 60
6-10 5 6 5 2 21 39
Sum 17 31 56 14 84 291
but when I export this result into excel I am getting transposing output of flag 1
and flag 2
.
Can any one suggest me as it is output export into Excel?