R/summary_stats.R
richness.Rd
Calculate the richness (number of non-0 entries) of a given sample.
richness(x)
numeric vector
numeric
numeric value of the number of non-0 entries in x.
x