intervalWUI {imageData} | R Documentation |
Calculates water use indices (WUI) over a specified time interval to a data.frame
Description
Calculates the Water Use Index (WUI) between two time points for a set of responses.
Usage
intervalWUI(responses, water.use = "Water.Use",
individuals = "Snapshot.ID.Tag", times.factor = "Days",
start.times, end.times, suffix.interval = NULL,
data, include.total.water = FALSE, na.rm = FALSE)
Arguments
responses |
A |
water.use |
A |
individuals |
A |
times.factor |
A |
start.times |
A |
end.times |
A |
suffix.interval |
A |
data |
A |
include.total.water |
A |
na.rm |
A |
Details
The WUI is calculated as the difference between the values of a response
at the end.times
and start.times
divided by the sum of the water use
after start.times
until end.times
. Thus, the water use up to
start.times
is not included.
Value
A data.frame
containing the WUIs, the name of each
column being the concatenation of one of responses
,
WUI
and, if not NULL
, suffix.interval
, the three
components being separated by a full stop. If the total water is to be
included, the name of the column will be the concatenation of
water.use
, Total
and the suffix, each separated by a full
stop(‘.’).
Author(s)
Chris Brien
See Also
intervalGRaverage
, intervalGRdiff
, splitValueCalculate
, getDates
,
GrowthRates
Examples
data(exampleData)
Area.smooth.WUI <- intervalWUI("Area", water.use = "Water.Loss",
start.times = 31, end.times = 35,
suffix = "31to35",
data = longi.dat, include.total.water = TRUE)