transform_PSD: Manipulate the size distribution created by...

Description Usage Arguments Value Examples

View source: R/size_distribution.R

Description

Manipulate the size distribution created by FCSplankton::create_PSD(). Calculate the sum of particles in each size class over specific temporal resolution; transform the header

Usage

1
2
3
4
5
6
7
transform_PSD(
  PSD,
  time.step = "1 hour",
  Qc.to.diam = FALSE,
  interval.to.geomean = FALSE,
  abundance.to.biomass = FALSE
)

Arguments

time.step

Time step over which to sum the number of particles in each size class. Default 1 hour, must be higher than 3 minutes

Qc.to.diam

Convert carbon quotas to diameter as described in Menden-Deuer, S. and Lessard, E. J. Carbon to volume relationships for dinoflagellates, diatoms, and other protist plankton. Limnol. Oceanogr. 45, 569–579 (2000).

interval.to.geomean

Transform size class intervals to geometric mean values (i.e. convert breaks (min, max] to geometric mean defined as sqrt(mean*max).

abundance.to.biomass

Calculate carbon biomass in each population (i.e. cell abundance x Qc)

distribution

Particle size disitribution created by FCSplankton::create_PSD(). i.e., a tibble of size distribution over time. First column must be time (POSIXt class object); Second column must name of the population; other columns represent the different size classes. Size classes can represent either diameter or carbon quota (assuming spherical particles).

Value

Size distribution

Examples

1
2
3
4
## Not run: 
distribution <- transform_PSD(distribution, time.step="1 hour")

## End(Not run)

armbrustlab/ssPopModel documentation built on Sept. 22, 2021, 1:25 p.m.