Learn R Programming

nlme (version 3.1-10)

getGroupsFormula.reStruct: Extract reStruct Grouping Formula

Description

The names of the object components are used to construct a one-sided formula, or a named list of formulas, depending on the value of asList. The components of the returned list are ordered from outermost to innermost level.

Usage

getGroupsFormula(object, asList)

Arguments

Value

a one-sided formula, or a list of one-sided formulas, with the grouping structure associated with object.

See Also

reStruct, getGroups

Examples

Run this code
rs1 <- reStruct(list(A = pdDiag(diag(2), ~age), B = ~1))
getGroupsFormula(rs1)

Run the code above in your browser using DataLab