table0: Table function where 'useNA' is defaulted to 'TRUE'

table0R Documentation

Table function where 'useNA' is defaulted to 'TRUE'

Description

Identical to 'table(..., useNA = "always")'. The name is inspired by 'paste0'.

Usage

table0(...)

Arguments

...

arguments passed through to the 'table' function

Value

Returns output of 'table' but forces 'NA' to always be counted

Examples

x <- sample(c(letters, NA), 1000, replace = TRUE)
table(x)
table(x, useNA = "always")
table0(x)


adamleerich/alrtools documentation built on March 12, 2024, 11:38 p.m.