accessor: Accessor methods for freealg objects

accessorR Documentation

Accessor methods for freealg objects

Description

Accessor methods for free algebra objects

Usage

words(x)
coeffs(x)
coeffs(x) <- value

Arguments

x

Object of class freealg

value

Numeric vector of length 1

Details

Access or set the different parts of an freealg object. The constant term is technically a coefficient but is documented under constant.Rd.

Note

There is an extended discussion of this issue in the mvp object at accessor.Rd.

Author(s)

Robin K. S. Hankin

See Also

constant

Examples

a <- rfalg()
a
coeffs(a)
words(a)  # Note hash is identical to that of coeffs(a)

coeffs(a) <- 7   # replacement methods work 
a
coeffs(a)  # 

freealg documentation built on March 31, 2023, 7:13 p.m.