backwards | R Documentation |
Write free objects in reverse order
backwards(x)
x |
Object of class |
For each element of a free
object, function backwards()
writes the symbols in reverse order. It is distinct from
rev()
, see examples.
Function backwards is an involution: it is its own inverse.
Robin K. S. Hankin
abc(1:5)
backwards(abc(1:5))
rev(abc(1:5))
x <- rfree(10,5)
backwards(backwards(x)) == x # involution
all(abelianize(x) == abelianize(backwards(x))) # should be TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.