ubiquity {diverse} | R Documentation |
Ubiquity of categories across entities
Description
Computes the ubiquity or the rareness of the categories
Usage
ubiquity(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 dataframe with values of number of entities where the category is present. Ordered in decreasing order.
Examples
ub <- ubiquity(data=pantheon)