tally_sets: Filter and tally frequency of distinct RADs

Description Usage Arguments Value

View source: R/sad_sampler.R

Description

Filter a matrix of samples from the feasible set to include only unique vectors, and tally the frequency of those vectors.

The frequency should be approximately equal for all vectors, but for small sample numbers this will not necessarily happen.

Usage

1
tally_sets(sets_matrix)

Arguments

sets_matrix

matrix of draws from a feasible set (output of sample_fs)

Value

data frame of unique species abundance vectors (rows are unique vectors, columns are species) and a column set_frequency of the frequency of each vector in the original set of samples.


diazrenata/feasiblesads documentation built on April 24, 2021, 12:26 a.m.