Learn R Programming

mixlm (version 1.2.6)

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.

See Also

fparse

Examples

Run this code
# NOT RUN {
f <- formula(y~x*r(z))
rparse(f)
# }

Run the code above in your browser using DataLab