Rcmdr (version 0.9-12)

colPercents: Row and Column Percentage Tables

Description

Percentage a matrix or higher-dimensional array of frequency counts by rows or columns.

Usage

colPercents(tab, digits=2)
rowPercents(tab, digits=2)

Arguments

tab
a matrix or higher-dimensional array of frequency counts.
digits
number of places to the right of the decimal place for percentages.

Value

  • Returns an array of the same size and shape as tab percentaged by rows or columns, plus rows or columns of totals and counts.