metacoder (version 0.1.2)

n_obs: Count observations in taxmap

Description

Count observations for each taxon in taxmap. This includes observations for the specific taxon and its subtaxa.

Usage

n_obs(obj, subset = 1:nrow(obj$taxon_data))

Arguments

obj
subset
(character) The taxon_ids or indexes in taxon_data to get counts for.

Value

numeric

See Also

Other taxon_funcs: hierarchies, n_obs_1, n_subtaxa_1, n_subtaxa, n_supertaxa