I am using the following command that returns this output:
> table(data$Smoke, data$Gender)
female male
no 314 334
yes 44 33
Nonetheless, in the tutorial I'm watching, the instructor uses the same line of code and they get
Gender
Smoke female male
no 314 334
yes 44 33
How can I achieve this result? It's not clear from the help menu.