Learn R Programming

nlme (version 3.1-163)

getCovariate.data.frame: Extract Data Frame Covariate

Description

The right hand side of form, stripped of any conditioning expression (i.e. an expression following a | operator), is evaluated in object.

Usage

# S3 method for data.frame
getCovariate(object, form, data)

Value

the value of the right hand side of form, stripped of any conditional expression, evaluated in object.

Arguments

object

an object inheriting from class data.frame.

form

an optional formula specifying the covariate to be evaluated in object. Defaults to formula(object).

data

some methods for this generic require a separate data frame. Not used in this method.

Author

José Pinheiro and Douglas Bates bates@stat.wisc.edu

See Also

getCovariateFormula

Examples

Run this code
getCovariate(Orthodont)

Run the code above in your browser using DataLab