Adds the taxa/columns counts by entity/row and inserts the a new column, total, after the last index in cols, the metadata columns.

total_taxa(.data, cols = 1)

Arguments

.data

Data frame.

cols

Numeric vector with the columns to be ignored (metadata columns).

Value

Data frame including a new column, total, with taxa counts.