tab2v: Table wrapper for two variables

View source: R/fn_all.R

tab2vR Documentation

Table wrapper for two variables

Description

Wrapper function to produce summary tables for two variables.

Usage

tab2v(d, x, y)

Arguments

d

⁠<dfr>⁠ A data frame.

x, y

⁠<var>⁠ Variables to tabulate.

Value

A tabyl object.

Examples

# example code
mtcars |> tab2v(vs,cyl)
mtcars |> tab2v(vs,am)
mtcars |> tab2v(vs,am)
mtcars |> tab2v(vs,gear)

edar documentation built on Nov. 15, 2026, 1:07 a.m.