accessor {freealg} | R Documentation |
Accessor methods for freealg objects
Description
Accessor methods for free algebra objects
Usage
words(x)
coeffs(x,drop=TRUE)
coeffs(x) <- value
Arguments
x |
Object of class |
value |
Numeric vector of length 1 |
drop |
Boolean, with default |
Details
Access or set the different parts of a freealg
object. The
constant term is technically a coefficient but is documented under
constant.Rd
.
“Pure” extraction and replacement (as in a[i]
and
a[i] <- value
is implemented exprimentally. The code for
extraction is cute but not particularly efficient.
Note
There is an extended discussion of disordR discipline in the
context of algebras in the mvp package at accessor.Rd
.
Author(s)
Robin K. S. Hankin
See Also
Examples
a <- rfalg()
a
coeffs(a)
words(a) # NB: hash is identical to that of coeffs(a)
coeffs(a) <- 7 # replacement methods work
a
coeffs(a) #
[Package freealg version 1.1-8 Index]