crosstabs: xtabs with sensible defaults

Description Usage Arguments Examples

View source: R/shorthands.R

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

1
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

1
2
x = NA
crosstabs(~ x)

grebbel/formr_test documentation built on May 17, 2019, 8:34 a.m.