SampBind: SampBind - Combine the multiple outputs from SampPost

Description Usage Arguments Value

View source: R/SampBind.R

Description

This function combines sets of samples created by SampPost(). This function can cobine samples with different start and end years if max and min years are available in the input attributes.

Usage

1
2
3
4
5
6
7
SampBind(
  indata = "../data/model_runs/",
  innames = NULL,
  output_path = "../data/bound_samples/",
  group_name = "",
  write
)

Arguments

indata

The file path to a location containing .rdata files of the SampPost() outputs, one for each species or species group.

innames

A vector of file names to be used as the input. If a vector is not supplied then all .rdata files in the specified folder will be used.

output_path

The location where the output will be saved.

group_name

The name of the species group we are running, used for naming output files.

write

Logical. If TRUE writes output to output_path.

Value

An .rdata file containing the inputted posterior samples combined into a single dataframe.


GPowney/TrendSummaries documentation built on Nov. 15, 2021, 6:14 p.m.