Learn R Programming

fastR2 (version 1.2.4)

col.perc: Row and Column Percentages

Description

Convenience wrappers around apply() to compute row and column percentages of matrix-like structures, including output of xtabs.

Usage

col.perc(x)

row.perc(x)

Arguments

x

matrix-like structure

Author

Randall Pruim

Examples

Run this code

row.perc(tally(~ airline + result, data = AirlineArrival))
col.perc(tally(~ airline + result, data = AirlineArrival))

Run the code above in your browser using DataLab