kcf_tab: Tabulate frequency and relative frequency

View source: R/kcf_tab.R

kcf_tabR Documentation

Tabulate frequency and relative frequency

Description

One-way and two-way tabulations of provided variables Speedboost via tidytable.

Usage

kcf_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: 
kcf_tab(mtcars, c(vs)) # one-way tabulate
kcf_tab(mtcars, c(vs, am)) # two-way tabulate

## End(Not run)

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