Learn R Programming

mixlm (version 1.0.8.1)

rparse: Removes function r() from formulas.

Description

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

Usage

rparse(f, REML = FALSE)

Arguments

f
formula to be stripped of r().
REML
logical indicating if lmer conversion should be done.

Value

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

encoding

latin1

See Also

fparse

Examples

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

Run the code above in your browser using DataLab