I am a novice to R, and I am currently learning contingency table. I want to create a contingency table using the data from "loans_full_schema
"(from openintro) with the "application_type
" and "homeownership
" datas. Below is my code.
library(oibiostat)
data("loans_full_schema")
tab <- table(loans_full_schema$application_type, loans_full_schema$homeownership)
tab
And my outcome is my outcome
Yet, I want to be able to get the outcome as below wanted outcome
So my question is why are there a "Any" column and a blank row in my outcome?