powered by
Computes column percentages for a given two-way table.
colPerc(tab)
A two way table, e.g., the result of xtabs(~var1+var2,data=DataFrame).
xtabs(~var1+var2,data=DataFrame)
An object of class table, giving column percentages for the input table.
table
# NOT RUN { MyTable <- xtabs(~weather+crowd.behavior,data=ledgejump) colPerc(MyTable) # }
Run the code above in your browser using DataLab