frequency.table <- as.table(matrix(c(12,0,5,7),2,2))
attr(frequency.table, "dimnames") <- list("sex" = c("male", "female"),
"migration" = c(TRUE, FALSE))
message("Some combinations of variables with zero observations: \n",
print_and_capture(frequency.table, spaces = 5))
Run the code above in your browser using DataLab