splitValueCalculate | R Documentation |
Splits the values of a response into subsets corresponding individuals and applies a function that calculates a single value to each individual's observations. It includes the ability to calculate the observation that corresponds to the calculated value of the function.
splitValueCalculate(response, weights=NULL, individuals = "Snapshot.ID.Tag",
FUN = "max", which.obs = FALSE, which.levels = NULL,
data, na.rm=TRUE, sep=".", ...)
response |
A |
weights |
A |
individuals |
A |
FUN |
A |
which.obs |
A |
which.levels |
A |
data |
A |
na.rm |
A |
sep |
A |
... |
allows for arguments to be passed to |
A data.frame
, with the same number of rows as there are
individuals
, containing the values of the function for the
individuals
.
Chris Brien
splitContGRdiff
, splitSplines
data(exampleData)
Area.smooth.max <- splitValueCalculate("Area.smooth", data = longi.dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.