donames | R Documentation |
Get and set names of free group elements and arithmetic operations
donames(f,e1,e2)
f |
A vector, typically of class |
e1,e2 |
Objects of class |
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::`+`
.
Robin K. S. Hankin
Ops.free
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.