| byIndv4Intvl_WaterUse {growthPheno} | R Documentation |
Calculates, water use traits (WU, WUR, WUI) over a specified time interval
for each individual in a data.frame in long format.
Description
Calculates one or more of water use (WU), water use rate (WUR), and,
for a set of responses, water use indices (WUI)s over a specified time
interval for each individual in a data.frame in long format.
Usage
byIndv4Intvl_WaterUse(data, water.use = "Water.Use", responses = NULL,
individuals = "Snapshot.ID.Tag", times = "DAP",
trait.types = c("WU", "WUR", "WUI"),
suffix.rate = "R", suffix.index = "I",
sep.water.traits = "", sep.responses = ".",
start.time, end.time,
suffix.interval = NULL, sep.suffix.interval = ".",
na.rm = FALSE)
Arguments
data |
A |
water.use |
A |
responses |
A |
individuals |
A |
times |
A |
trait.types |
A |
suffix.rate |
A |
suffix.index |
A |
sep.water.traits |
A |
sep.responses |
A |
start.time |
A |
end.time |
A |
suffix.interval |
A |
sep.suffix.interval |
A |
na.rm |
A |
Details
WUis the water use and is the sum of the water use after
start.timeuntilend.time. Thus, the water use up tostart.timeis not included.WURis the Water Use Rate and is
WUdivided by the difference betweenend.timeandstart.time.WUIis the Water Use Index and is calculated as a
responsedifference between the start.time and the end.time, which s then divided by theWU.
Value
A data.frame containing the individuals column, WU
and/or WUR and, if requested, a WUI for each
element of responses. The names of WU and WUR will have
suffix.interval appended, if it is not NULL, separated by a
full stop (‘.’). The name of each WUI will be the concatenation of an
element of responses with WUI and, if not NULL,
suffix.interval, the three components being separated by a
full stop (‘.’).
Author(s)
Chris Brien
See Also
byIndv4Intvl_GRsAvg, byIndv4Intvl_GRsDiff,
splitValueCalculate, getTimesSubset,
GrowthRates
Examples
data(exampleData)
WU.WUI_31_35 <- byIndv4Intvl_WaterUse(data = longi.dat,
water.use = "WU", responses = "PSA",
times = "DAP",
trait.types = c("WUR","WUI"),
suffix.rate = ".Rate",
suffix.index = ".Index",
start.time = 31, end.time = 35,
suffix.interval = "31to35")