View source: R/compute.group.variable.R
compute.group.variable | R Documentation |
Calculate subgroup variable using an arbitrary function.
compute.group.variable(
fx,
data = NULL,
FUN = function(x) {
x
}
)
fx |
Formula - defines formula for dependent variable and subgroups ( dv ~ v1 + v2 + ...) |
data |
Data Frame - data frame with columns corresponding to variables in fx. |
FUN |
Function - A function(x) where x is subgroup values that returns a vector that is the same length as x. |
A vector the same length as rows in data containing the results of the subgroup calculation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.