adjust_rate: Simple rate adjustment function (background or oxygen flux)

Description Usage Arguments Details Value Examples

View source: R/adjust_rate.R

Description

A simple rate correction function. Please note that the sign of the number must be considered in the correction. Background respiration is normally a negative number, while oxygen flux may or may not be negative.

Usage

1

Arguments

x

numeric. A single value, or any object of class calc_rate or auto_rate. This object contains the rate value that needs to be adjusted.

by

either a numeric, or an object of class calc_rate.bg. This is the value that is used to perform the correction/adjustment.

Details

To account for background respiration and/or oxygen flux in open respirometry experiments, we have provided a simple function to perform either, or both, corrections. As a separate function we may develop this to support more complex correction methods (e.g. non-linear) in the future.

Value

A list object of class adjust_rate.

Examples

1
2
3
4
5
6
# Note that respiration is negative by default (since it represents a
# decrease in dissolved oxygen), so both values are negative!
# Background respiration correction
adjust_rate(-7.44, -0.04) # this is (-7.44) - (-0.04) = -7.40
# Oxygen flux correction
adjust_rate(-7.44, 0.1) # this is (-7.44) - (0.1) = -7.54

januarharianto/respR documentation built on Nov. 13, 2018, 1:21 p.m.