col.perc {fastR2}R Documentation

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(s)

Randall Pruim

Examples


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


[Package fastR2 version 1.2.4 Index]