my.sum.table: Contingency Table Creation

View source: R/my.sum.table.R

sum.tableR Documentation

Contingency Table Creation

Description

Create a contingency table with counts, percentages, and row column totals.

Usage

sum.tabel(x, d = 2, rnd = 1)

Arguments

x

table object created with table or xtabs.

d

numeric value specifying whether percentages should sum across rows (d = 1) or columns (d = 2).

rnd

numeric value specifying number of decimal places to be included in percentages.

Value

A table.

Author(s)

Jason Grafmiller

Examples

data(brown_genitives)

my.sum.table(table(gen$Genre, gen$Type))

my.sum.table(table(gen$Genre, gen$Type), d = 1)

jasongraf1/JGmisc documentation built on March 21, 2022, 7:42 a.m.