I am pretty new in R and I would like to calculate two different kind of frequencies from a two-way table. Ideally I would like to get two independent frequency tables as outputs.
C1 C2 C3 C4 ... Cm TotalS
S1 xx xx xx xx xx yyyy
TotalC zzz zzz zzz zz zzz
Then I need to calculate in each "cell" two frecuencies:
I would like to get the same table format as an output, but with the values calculated in "1" or "2".
Can somebody imagine how to do so?