Learn R Programming

mixlm (version 1.4.0)

rparse: Removes function r() from formulas.

Description

Removes function r() from formulas. Can also convert to lmer formula.

Usage

rparse(f, REML = FALSE)

Value

Formula without r(), possibly converted to lmer mixed model format.

Arguments

f

formula to be stripped of r().

REML

logical indicating if lmer conversion should be done.

Author

Kristian Hovde Liland

See Also

fparse

Examples

Run this code
f <- formula(y~x*r(z))
rparse(f)

Run the code above in your browser using DataLab