| byIndv4Intvl_WaterUse | R Documentation |
data.frame in long format.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.
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)
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 |
WU is the water use and is the sum of the water use after start.time
until end.time. Thus, the water use up to start.time is not included. Further,
if any water use value in the interval is NA, the interval value will be set to NA.
WUR is the Water Use Rate and is WU divided by the difference
between end.time and start.time.
WUI is the Water Use Index and is calculated as a response difference
between the start.time and the end.time, which is then divided by the WU.
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 (‘.’).
Chris Brien
byIndv4Intvl_GRsAvg, byIndv4Intvl_GRsDiff,
getTimesSubset, GrowthRates
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.