Learn R Programming

phytoclass (version 2.3.1)

Default_min_max: Sets the default minimum and maximum values for phytoplankton groups pigment ratios. To use this function, pigment and phytoplankton group names will need to fit the naming criteria of phytoclass.

Description

Sets the default minimum and maximum values for phytoplankton groups pigment ratios. To use this function, pigment and phytoplankton group names will need to fit the naming criteria of phytoclass.

Usage

Default_min_max(min_max, Fmat)

Value

A list containing two elements: 1: Vector of minimum values for each non-zero pigment ratio 2: Vector of maximum values for each non-zero pigment ratio

Arguments

min_max

A data.frame with 4 columns for class, pigment, min and max values

Fmat

F matrix with phytoplankton groups as rows and pigments as columns

Examples

Run this code
# Create a sample F matrix
Fmat <- phytoclass::Fm

# Create min_max data frame
min_max <- phytoclass::min_max
result <- phytoclass:::Default_min_max(min_max, Fmat)

Run the code above in your browser using DataLab