inspect_data: Check for common errors in respirometry data

Description Usage Arguments Details Value Examples

View source: R/inspect_data.R

Description

inspect_data() scans a data frame for specific errors that may affect the use of functions in respR. Data checks include:

Usage

1
2
inspect_data(df, time = NULL, oxygen = NULL, inflow.o2 = NULL,
  outflow.o2 = NULL, highlight = TRUE, plot = TRUE)

Arguments

df

data frame. Accepts data frame object of any size.

time

numeric. Defaults to NULL. This is the time data.

oxygen

numeric. Defaults to NULL. This is the dissolved oxygen data.

inflow.o2

numeric. Defaults to NULL. This is inflow oxygen data. Used only for flowthrough respirometry data.

outflow.o2

numeric. Defaults to NULL. This is outflow oxygen data. Used only for flowthrough respirometry data.

highlight

logical. Defaults to TRUE. Prints location (row #) of errors detected by the function.

plot

logical. Defaults to TRUE. Produces plots for quick visual diagnostics.

Details

Once data checks are complete, the function produces a list object which may be directly loaded into calc_rate(), calc_rate.bg(), calc_rate.ft(), and auto_rate() for further analyses.

Value

A list object of class adjust_rate.

Examples

1
2

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