donames {freegroup} | R Documentation |
Names attributes of free group elements
Description
Get and set names of free group elements and arithmetic operations
Usage
donames(f,e1,e2)
Arguments
f |
A vector, typically of class |
e1 , e2 |
Objects of class |
Details
Function donames()
is a low-level helper function that ensures
that the result of arithmetic operations such as +
and ^
have the correct names attributes. The behaviour is inherited from
that of base::`+`
.
Author(s)
Robin K. S. Hankin
See Also
Examples
x <- rfree(9,4)
x
names(x) <- letters[1:9]
x
z <- as.free('z')
x + x
x^z
z^x
n <- 1:9
names(n) <- LETTERS[1:9]
x*n
n*x # note different names
[Package freegroup version 1.1-8 Index]