racircal: Corrects rapid A/Ci response (RACiR) data from leaves using...

Description Usage Arguments Value Examples

View source: R/racircal.R

Description

racircal Corrects your RACiR data based on calibration data. Produces corrected A vs. Ci graph. Output is a data frame with corrected RACiR data using variable names Acor and Cicor for the corrected A and Ci values.

Usage

1
2
3
4
5
6
7
8
racircal(
  data,
  caldata,
  mincut,
  maxcut,
  title,
  varnames = list(A = "A", Ca = "Ca", CO2_r = "CO2_r", E = "E", gtc = "gtc")
)

Arguments

data

Data frame with the RACiR response data

caldata

Data frame with the calibration data

mincut

Minimum cutoff value for reference CO2 (CO2_r). Used to cut out the data from the initial chamber mixing. Default value is set to the minimum COR_r value.

maxcut

Maximum cutoff value for reference CO2 (CO2_r). Used to cut out the data from the end of the response. Not needed in all cases. Default value is set to the maximum COR_r value.

title

Title of output graph - useful for batch RACiR corrections.

varnames

Variable names - this allows for the use of this code with other machines and setups where variable names may differ.

Value

racircal returns a data frame with corrected RACiR data

Examples

1
2
3
4
5
6
#Read in data
data <- read_6800(system.file("extdata", "poplar_2", package = "racir"))
caldata <- read_6800(system.file("extdata", "cal", package = "racir"))
#Correct data
data_corrected <- racircal(data = data, caldata = caldata,
                           mincut = 350, maxcut = 780, title = "Test")

jstinzi/racir documentation built on Aug. 8, 2020, 1:13 a.m.