crosstabs: xtabs with sensible defaults

View source: R/shorthands.R

crosstabsR Documentation

xtabs with sensible defaults

Description

xtabs requires two arguments (na.action and exclude) to show missing values along with other values. This function defaults to including missings and has only one argument

Usage

crosstabs(x, ..., exclude = NULL)

Arguments

x

passed to xtabs if it is a formula, transformed into a formula if it's a single object

...

passed to xtabs

exclude

defaults to NULL (i.e. includes NA)

Examples

x = NA
crosstabs(~ x)

rubenarslan/formr documentation built on July 6, 2024, 5:46 a.m.