compute.group.variable: Calculate Subgroup Variable

Description Usage Arguments Value

View source: R/compute.group.variable.R

Description

Calculate subgroup variable using an arbitrary function.

Usage

1
2
3
compute.group.variable(fx, data = NULL, FUN = function(x) {
    x
})

Arguments

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.

Value

A vector the same length as rows in data containing the results of the subgroup calculation.


burrm/lolcat documentation built on Oct. 13, 2021, 11:35 p.m.