as.semigroup: Coerce to a Semigroup Object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

A generic function for coercing an R object to a semigroup class.

Usage

1
as.semigroup(x, gens = NA, lbs, numerical, edgeT)

Arguments

x

an array representing the semigroup

gens

array or vector representing the semigroup generators

lbs

(optional) label strings for the semigroup

numerical

(optional and logical) should the semigroup have numerical format?

edgeT

(optional, logical, and experimental) is ‘x’ an edge table?

Details

Since many of the functions in the multiplex package require an object of the 'Semigroup' class, this function produces this class object from an array representing the semigroup structure.

Value

An object of the 'Semigroup' class

ord

a number with the dimension of the semigroup

st

the strings, i.e. a vector of the unique relations

gens

the semigroup generators

S

the multiplication table of the semigroup

Author(s)

Antonio Rivero Ostoic

See Also

semigroup

Examples

1
2
3
4
5
6
## create labeled multiplication table data
s <- matrix(data=c(1, 1, 1, 3, 3, 3, 3, 3, 3), nrow=3, ncol=3, byrow=TRUE)
attr(s, "dimnames") <- list(1:3,1:3)

## make a semigroup object
as.semigroup(s)

multiplex documentation built on March 26, 2020, 5:45 p.m.