calc_rate.ft: Calculate rate of change in oxygen in flowthrough...

Description Usage Arguments Details Value Examples

View source: R/calc_rate.ft.R

Description

Calculates rate of oxygen uptake in flowthrough respirometry given a flow-rate and both inflow and outflow oxygen concentrations. Can return a single value, or multiple and mean values based on continuous data.

Usage

1
2
calc_rate.ft(x = NULL, time = NULL, inflow.o2 = NULL,
  outflow.o2 = NULL, flowrate = NULL, plot = TRUE)

Arguments

x

data frame or object of class inspect.

time

numeric. Defaults to NULL. This specifies the time column if a data frame is provided. Otherwise, this is a numeric vector for time data.

inflow.o2

numeric. Defaults to NULL. This specifies the inflow O2 column if a data frame is provided. Otherwise, this is a numeric vector for inflow oxygen concentration.

outflow.o2

numeric. Defaults to NULL. This specifies the outflow O2 column if a data frame is provided. Otherwise, this is a numeric vector for outflow oxygen concentration.

flowrate

numeric vector. The flow rate. No unit of measurement is expected; you will specify it when you perform conversions later in convert_rate. However: it must be in Litres per unit time (s,m,h), for example L/s.

plot

logical. Defaults to TRUE. Plots the data.

Details

There are no units involved in calc_rate.ft. This is a deliberate decision. Units are called in a later function when volumetric and/or mass-specific rates of oxygen use are computed in convert_rate() and convert_DO().

Value

An object of class "calc_rate.ft".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Single numeric values
calc_rate.ft(inflow.o2 = 8.88, outflow.o2 = 8.17, flowrate = 0.000039)
# Numeric values and vector
calc_rate.ft(inflow.o2 = 8.88, outflow.o2 = flowthrough.rd$o2.out,
  flowrate = 0.000039)
# Vectors
calc_rate.ft(inflow.o2 = flowthrough.rd$o2.in,
  outflow.o2 = flowthrough.rd$o2.out, flowrate = 0.000039)
# A data frame
calc_rate.ft(flowthrough.rd, time = 1, outflow.o2 = 2, inflow.o2 = 3, flowrate = 0.00039)

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