counter: counter

Description Usage Arguments Value Examples

View source: R/counter.R

Description

Generates a table of counts, for any given dataset and categorical variable.

Usage

1
counter(dat, var)

Arguments

dat

The dataset

var

A categorical variable

Value

A table of counts for each of the categories of the categorical variable.

Examples

1
my_tab <- counter(infert, "case")

Shelmith-Kariuki/rAfrica documentation built on Oct. 11, 2020, 12:50 a.m.