balance {diverse} | R Documentation |
Balance or proportions
Description
Computes the proportions or probabilities of raw values.
Usage
balance(data, category_row = FALSE)
Arguments
data |
A numeric matrix with entities |
category_row |
A flag to indicate that categories are in the rows. The analysis assumes that the categories are in the columns of the matrix. If the categories are in the rows and the entities in the columns, then the argument "category_row" has to be set to TRUE. The default value is FALSE. |
Value
A matrix of entities-categories with proportions.
Examples
balance(data=geese, category_row = TRUE)