R/table.r

Defines functions table_na

Documented in table_na

#' Contingency table including NA values
#'
#' This function is a simple wrapper around \code{\link[base]{table}} to build
#' a contingency table including \code{NA} values.
#'
#' @export
#' @param ... one or more objects passed to \code{\link[base]{table}} to build
#' a contingency table
#' @return a \code{table} object containing the contingency table
table_na <- function(...) {
  table(..., useNA="ifany")
}
ramhiser/pocketknife documentation built on May 26, 2019, 10:11 p.m.