num2char: Convert a column number to a word representation

Description Usage Arguments Details Value Examples

View source: R/generators.R

Description

'num2char' represents a column number as its corresponding generator.

Usage

1

Arguments

x

Number of the interaction

Details

Column number are always positive, non-zero integers. Basic factors are power of two, while added factors are decomposed in powers of two and their corresponding generator is build from it. A generator corresponds to the basic factors used to create the levels of the added factor. All basic factors are represented by independent lowercase letters.

Value

A character of length larger or equal to one, corresponding to a generator. For any number n, the length of the character will always be ceil(log2(n)).

Examples

1
2

ABohynDOE/mldoeR documentation built on Dec. 17, 2021, 6:40 a.m.