sample_fs_wrapper: Sample fs wrapper

Description Usage Arguments Value

View source: R/sample_fs.R

Description

Wrapper to sample the feasible set for a single site within a larger dataset; used to interface between the drake plan and sample_fs.

Usage

1
2
3
4
5
6
7
8
sample_fs_wrapper(
  dataset,
  site_name,
  singletonsyn,
  n_samples,
  p_table = NULL,
  seed = NULL
)

Arguments

dataset

Full dataset - potentially including numerous sites

site_name

Which site within the dataset

singletonsyn

T/F Whether to use the version that has been adjusted for rarefaction

n_samples

How many samples to draw. See sample_fs: if the feasible set is small, you may not necessarily get n_samples unique samples. These functions will only return unique samples.

p_table

Optionally, pass the p-table to avoid having to regenerate it

seed

pass a seed for reproducibility

Value

Output of sample_fs for the selected site


diazrenata/scadsanalysis documentation built on May 14, 2021, 6:59 p.m.