powered by
Drop-in replacement for table() that defaults to useNA = "ifany", showing NA counts when present.
table()
useNA = "ifany"
table(..., useNA = "ifany")
A contingency table of class table.
table
Objects to cross-tabulate.
Whether to include NA values. Default "ifany".
"ifany"
x <- c("a", "b", NA, "a", NA) table(x)
Run the code above in your browser using DataLab