Using the mtcars dataset, I have created a cross table as follows -
mtcars
tab = with(mtcars, ftable(gear, cyl)) tab
Here is how it looks -