Learn R Programming

tigerstats (version 0.3.2)

colPerc: Column Percents

Description

Computes column percentages for a given two-way 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
# NOT RUN {
MyTable <- xtabs(~weather+crowd.behavior,data=ledgejump)
colPerc(MyTable)
# }

Run the code above in your browser using DataLab