Learn R Programming

adas.utils (version 1.3.0)

fp_alias: Build an alias table from a formula

Description

Given a Defining relationship or a number of factors, this function builds a matrix of aliases.

Usage

fp_alias(arg)

Value

A matrix of logical values.

Arguments

arg

A formula or a number of factors.

Details

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

Examples

Run this code
fp_alias(~A*B*C*D)
fp_alias(3)

Run the code above in your browser using DataLab