sample_by_subcommunities: Subsample a dataset by subcommunities

Description Usage Arguments Value Examples

View source: R/sample_by_subcommunities.R

Description

Sample a dataset as if we only counted in some subcommunities.

Usage

1
sample_by_subcommunities(dataset, count)

Arguments

dataset

A matrix, data frame or tibble containing abundance or incidence data

count

The number of subcommunities to retain

Value

The subsampled dataset in the format it was passed in

Examples

1
2
3
library(magrittr)
sample_by_species(bci_2010, count = 20) %>%
  sample_by_subcommunities(count = 6)

IBAHCM/BakariMtiliBCI documentation built on Feb. 16, 2021, 12:01 a.m.