withinPC | R Documentation |
Calculate percentages of values in a matrix or table with respect to the row or column totals.
withinPC(X, rows = TRUE, rnd = 1)
X |
matrix or table |
rows |
TRUE (default) to calculate by rows, or FALSE to calculate by columns |
rnd |
numbers of digits to round the result to |
A matrix or table with percentages
(X=matrix(c(1:12),3))
withinPC(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.