Skip to contents

Builds a contingency table similar to base::table(). Unlike base::table(), crosstab() is pipe-friendly, and outputs an ordinary tibble / data.frame – e.g., it will retain its structure if exported to csv.

Currently supports only two variables.

Usage

crosstab(.data, ..., .drop = TRUE)