Calculates the Water Use Index (WUI) between two time points for a set of responses.
Note: this function is soft deprecated and may be removed in
future versions.
Use byIndv4Intvl_WaterUse.
intervalWUI(responses, water.use = "Water.Use",
individuals = "Snapshot.ID.Tag", times = "Days",
start.time, end.time, suffix.interval = NULL,
data, include.total.water = FALSE, na.rm = FALSE)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(`.').
A character giving the names of the columns in
data from which the growth rates are to be calculated.
A character giving the names of the column in
data which contains the water use values.
A character giving the name of the
factor that defines the subsets of the data
for which each subset corresponds to the response values for
an individual (e.g. plant, pot, cart, plot or unit).
A character giving the name of the column in
data containing the times at which the data was
collected, either as a numeric, factor, or
character. It will be used identifying the intervals and,
if a factor or character, the values should
be numerics stored as characters.
A numeric giving the times,
in terms of values in times, that will give a
single value for each Snapshot.ID.Tag and that will
be taken as the observation at the start of the interval for
which the WUI is to be calculated.
A numeric giving the times,
in terms of values times, that will give a
single value for each Snapshot.ID.Tag and that will be
taken as the observation at the end of the interval for which
the WUI is to be calculated.
A character giving the suffix to be
appended to response to form the names of the columns
containing the calculated the growth rates.
A data.frame containing the column from which the
growth rates are to be calculated.
A logical indicating whether or not to
include a column in the results for the total of water.use
for the interval for each individual.
A logical indicating whether NA values
should be stripped before the calculation proceeds.
Chris Brien
The WUI is calculated as the difference between the values of a response
at the end.time and start.time divided by the sum of the water use
after start.time until end.time. Thus, the water use up to
start.time is not included.
intervalGRaverage, intervalGRdiff, splitValueCalculate, getTimesSubset,
GrowthRates
data(exampleData)
PSA.WUI <- intervalWUI(response = "PSA", water.use = "WU",
times = "DAP", start.time = 31, end.time = 35,
suffix = "31to35",
data = longi.dat, include.total.water = TRUE)
Run the code above in your browser using DataLab