Learn R Programming

tigerstats (version 0.1.6)

rowPerc: Row Percents

Description

Computes row percentages for a given twoway table.

Usage

rowPerc(tab)

Arguments

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

Value

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

Examples

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

Run the code above in your browser using DataLab