Learn R Programming

tigerstats (version 0.1.6)

colPerc: Column Percents

Description

Computes column percentages for a given twoway table.

Usage

colPerc(tab)

Arguments

tab
A two way table, e.g., the result of xtabs(~var1+var2,data=DataFrame).

Value

  • An object of class table, giving column percentages for the input table.

Examples

Run this code
MyTable <- xtabs(~weather+crowd.behavior,data=ledgejump)
colPerc(MyTable)

Run the code above in your browser using DataLab