subbars: Substitute Bars

View source: R/utils.R

subbarsR Documentation

Substitute Bars

Description

Substitute the '+' function for the '|' and '||' function in a mixed-model formula.

Usage

subbars(term)

Arguments

term

a mixed-model formula

Value

the formula with all | and || operators replaced by +

Note

This function is called recursively on individual terms in the model, which is why the argument is called term and not a name like form, indicating a formula.


pwr4exp documentation built on April 4, 2025, 1:46 a.m.