make_xtab: Two by Two for Categorical Var

View source: R/make_tabs.R

make_xtabR Documentation

Two by Two for Categorical Var

Description

Create a nicely formatted 2x2 table for categorical variables.

Usage

make_xtab(data, cat_var1, cat_var2)

Arguments

data

dataset that contains the categorical variables

cat_var1

name of the categorical variable as a string

cat_var2

name of the categorical variable as a string

Value

none

Examples

make_xtab(ggplot2::diamonds, "cut", "color")

sarazong/SZRtools documentation built on Feb. 8, 2024, 6:49 a.m.