splitContGRdiff {imageData} | R Documentation |
Adds the growth rates calculated continuously over time for subsets
of a response to a data.frame
Description
Uses AGRdiff
, PGR
and
RGRdiff
to calculate growth rates continuously
over time for a subset of the values of response
and
stores the results in data
. The subsets are those values
with the same levels combinations of the factors listed in
INDICES
.
Usage
splitContGRdiff(data, responses, INDICES,
which.rates = c("AGR","PGR","RGR"), suffices.rates=NULL,
times.factor = "Days")
Arguments
data |
A |
responses |
A |
INDICES |
A |
which.rates |
A |
times.factor |
A |
suffices.rates |
A |
Value
A data.frame
containing data
to which has been
added a column for the differences between the times.factor
,
if it is not already in data
, and
columns with growth rates. The name of the column for times.factor
differences will be the times.factor
with ".diff"
appended and,
for each of the growth-rate columns will
be the value of response
with one of ".AGR"
, ".PGR"
or "RGR"
or the corresponding value from suffices.GR
appended.
Author(s)
Chris Brien
See Also
Examples
data(exampleData)
longi.dat <- splitContGRdiff(longi.dat, response="Area.smooth",
INDICES = "Snapshot.ID.Tag", which.rates=c("AGR", "RGR"))