ubiquity: Ubiquity of categories across entities

Description Usage Arguments Value Examples

View source: R/diversity.R

Description

Computes the ubiquity or the rareness of the categories

Usage

1
ubiquity(data, category_row = FALSE)

Arguments

data

A numeric matrix with entities i in the rows and categories j in the columns. Cells show the respective value (value of abundance) of entity i in the category j. It can also be a transpose of the previous matrix, that is, a matrix with categories in the rows and entities in the columns. Yet in that case, the argument "category_row" has to be set to TRUE. The matrix must include names for the rows and the columns. The argument "data", also accepts a dataframe with three columns in the following order: entity, category and value.

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

1

diverse documentation built on May 2, 2019, 2:10 a.m.

Related to ubiquity in diverse...