Bivariate tables on R

Hard to fashion an answer without a a reprex. See the FAQ.