acisummary: Extracts coefficients from fitacis2

Description Usage Arguments Value Examples

View source: R/acisummary.R

Description

Extracts coefficients from fitacis2

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#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)

plantecowrap documentation built on April 14, 2020, 7:45 p.m.