kc_tab: Tabulate frequency and relative frequency

View source: R/kc_tab.R

kc_tabR Documentation

Tabulate frequency and relative frequency

Description

One-way and two-way tabulations of provided variables

Usage

kc_tab(data, tabvar, dropna = FALSE)

Arguments

data

The data frame to tabulate

tabvar

The variables to tabulate

dropna

If TRUE then drops NA values; if FALSE then includes NA values

Value

A data frame with tabulation of counts and proportions.

Examples

## Not run: 
kc_tab(mtcars, c(vs)) # one-way tabulate
kc_tab(mtcars, c(vs, am)) # two-way tabulate

## End(Not run)

kennchua/kctools documentation built on Aug. 28, 2024, 8:37 a.m.