Learn R Programming

plantecowrap (version 1.0.4)

acisummary: Extracts coefficients from fitacis2

Description

Extracts coefficients from fitacis2

Usage

acisummary(data, group1, group2 = NA, group3 = NA, fits)

Arguments

data

data frame with A/Ci curve data

group1

grouping variable 1, must match fitacis2

group2

grouping variable 2, must match fitacis2

group3

grouping variable 3, must match fitacis2

fits

list output from fitacis2

Value

acisummary produces a data frame with A-Ci coefficients. If the input data have failed curve fits, these need to be removed before running acisummary().

Examples

Run this code
# NOT RUN {
#Read in data
data <- read.csv(system.file("extdata", "example_2.csv",
package = "plantecowrap"), stringsAsFactors = FALSE)
#Run ACi curve fitting
fits <- fitacis2(data, group1 = "Grouping",
varnames = list(ALEAF = "A",
                Tleaf = "Tleaf",
                Ci = "Ci",
                PPFD = "PPFD",
                Rd = "Rd",
                Press = "Press"),
fitmethod = "bilinear", fitTPU = TRUE, Tcorrect = FALSE)
#Extract coefficients
outputs <- acisummary(data, group1 = "Grouping", fits = fits)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab