fp_defrel: Factorial Plan Defining Relationship

View source: R/factorial_plan.R

fp_defrelR Documentation

Factorial Plan Defining Relationship

Description

Builds a formula from a number of factors

Usage

fp_defrel(arg)

Arguments

arg

If it is a formula, it is returned verbatim. If it is a number, a formula is built with the number of factors. If it is neither a formula nor a number, an error is thrown.

Value

A formula.

Examples

# Defining relationships with three factors
fp_defrel(3)

# Defining relationship I=ABC
fp_defrel(~A*B*C)

adas.utils documentation built on Nov. 15, 2025, 1:08 a.m.