# NOT RUN {
# Generation of rxc Contingency Table:
set.seed(151)
mat <- matrix(1:20,5,4, byrow = TRUE)
rctab(mat)
## outputs:
# [,1] [,2] [,3] [,4]
#[1,] 3 4 0 3
#[2,] 4 5 10 7
#[3,] 8 7 12 15
#[4,] 18 16 13 11
#[5,] 12 18 20 24
# }
Run the code above in your browser using DataLab