powered by
Convenience wrappers around apply() to compute row and column percentages of matrix-like structures, including output of xtabs.
apply()
xtabs
col.perc(x)row.perc(x)
row.perc(x)
matrix-like structure
Randall Pruim
row.perc(tally(~ airline + result, data = AirlineArrival)) col.perc(tally(~ airline + result, data = AirlineArrival))
Run the code above in your browser using DataLab