Learn R Programming

adas.utils (version 1.0.0)

fp_treatments: Factorial Plan List of Treatments

Description

Builds a list of treatments from a formula, or from a number of factors.

Usage

fp_treatments(arg)

Value

A list of treatments (character vector).

Arguments

arg

Either a formula or a number of factors. If it is a formula, the factors are extracted from it. If it is a number, the factors are the first n capital letters.

Details

Defining relationships are represented as one side formulas, e.g. $I=ABC$ becomes ~A*B*C.

Examples

Run this code
fp_treatments(3)

Run the code above in your browser using DataLab