input.info: Input the Information about Individuals and Chambers

Description Usage Arguments Details Value Examples

View source: R/input.info.R

Description

The function is used to input manually the information required for metabolic rate calculations: ID and wet mass of individuals, volume of chambers. Values of those parameters should be filled in the same order in a vector format replacing default NA values in the template. In addition, specify which unit has been used to measure dissolved oxygen concentration.

Usage

1
2
3
4
input.info(ID = c(NA, NA, NA, NA, NA, NA, NA, NA),
           Mass = c(NA, NA, NA, NA, NA, NA, NA, NA),
           Volume = c(NA, NA, NA, NA, NA, NA, NA, NA),
           DO.unit = c("mg/L", "mmol/L", "ml/L"))

Arguments

ID

string: ID of fish or another aquatic organism

Mass

numeric: wet mass of an individual in grams (g)

Volume

numeric: the volume of a chamber in milliliters (mL) or the whole respirometry loop (if measured)

DO.unit

character: dissolved oxygen used in raw data should be measured in 'mg/L', 'mmol/L' or 'ml/L'. If other measurement units were used, convert them to 'mg/L', 'mmol/L' or 'ml/L' using the function convert.respirometry or convert.rMR.

Details

It is especially important to keep such format of vectors when not the full number of individuals is in a multi-channel respirometry system. E.g.: if you use a 4-channel respirometry system with three fish and only Chamber 1 is empty, but data are still collected from there, do not remove NA values for that chamber to prevent the shift of actual data between the chambers.

Value

The function returns a data frame with four columns: "ID", "Mass", "Volume", "DO.unit". The data frame is used in the functions import.test, import.meas, and correct.meas.

Examples

1
2
3
4
5
6
# Four sticklebacks in a 4-channel respirometry system
info <- input.info(ID = c("Stickleback_1", "Stickleback_2",
                          "Stickleback_3", "Stickleback_4"),
                   Mass = c(1.86, 1.92, 2.23, 1.80),
                   Volume = c(250, 250, 250, 250),
                   DO.unit = "mg/L")

FishResp documentation built on Oct. 22, 2018, 9:03 a.m.