char2num: Number representation of a generator, written as a string

Description Usage Arguments Details Value Examples

View source: R/generators.R

Description

'char2num' takes a non-empty string, representing a generator, and converts it to the equivalent generator number. In the string, each letter represents a basic factor.

Usage

1

Arguments

s

a non-empty string representing a generator

Details

All letters are converted to lower case to avoid confusion with upper case letters, representing four-level factors. The order of the letters does not matter. Any letter is only counted once in the word. Thus, 'char2num("abcd")' and 'char2num("abbcddd")' will output the same result.

Value

the corresponding generator number

Examples

1
2
char2num("abd")
char2num("Addb")

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