Learn R Programming

nlme (version 3.1-31)

formula.groupedData: Extract groupedData Formula

Description

This method function extracts the display formula associated with a groupedData object. This is a two-sided formula of the form resp ~ cov | group, where resp is the response, cov is the primary covariate, and group is the grouping structure.

Usage

## S3 method for class 'groupedData':
formula(x, \dots)

Arguments

Value

a two-sided formula with a conditioning expression, representing the display formula for x.

See Also

groupedData

Examples

Run this code
data(Orthodont)
formula(Orthodont)

Run the code above in your browser using DataLab