Learn R Programming

tigerstats (version 0.3.2)

rowPerc: Row Percents

Description

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

Run the code above in your browser using DataLab