intervalValueCalculate {imageData} | R Documentation |
Calculates a single value that is a function of an individual's values for a response over a specified time interval
Description
Splits the values of a response into subsets corresponding individuals and applies a function that calculates a single value from each individual's observations during a specified time interval. It includes the ability to calculate the observation that corresponds to the calculated value of the function.
Usage
intervalValueCalculate(response, weights=NULL, individuals = "Snapshot.ID.Tag",
FUN = "max", which.obs = FALSE, which.levels = NULL,
start.time=NULL, end.time=NULL, times.factor = "Days",
suffix.interval=NULL, data, sep=".", na.rm=TRUE, ...)
Arguments
response |
A |
weights |
A |
individuals |
A |
FUN |
A |
which.obs |
A |
which.levels |
A |
start.time |
A |
end.time |
A |
times.factor |
A |
suffix.interval |
A |
data |
A |
na.rm |
A |
sep |
A |
... |
allows for arguments to be passed to |
Value
A data.frame
, with the same number of rows as there are
individuals
, containing a column for the individuals
,
a column with the values of the function for the individuals
,
and a column with the values of the times.factor
. The name of
the column with the values of the function will be result of
concatenating the response
, FUN
and, if it is not
NULL
, suffix.interval
, each separated by a full stop.
Author(s)
Chris Brien
See Also
intervalGRaverage
, intervalGRdiff
, intervalWUI
, splitValueCalculate
, getDates
Examples
data(exampleData)
Area.smooth.max <- intervalValueCalculate("Area.smooth",
start.time = 31, end.time = 35,
suffix.interval = "31to35",
data = longi.dat)