The free algebra in R

Robin K. S. Hankin

Submitted on 7 November 2022


The free algebra is an interesting and useful algebraic object. Here I introduce "freealg", an R package which furnishes computational support for free algebras. The package uses the standard template library's "map" class for efficiency, which uses the fact that the order of the terms is algebraically immaterial. The package follows "disordR" discipline. I demonstrate some properties of free algebra using the package, and showcase package idiom. The package is available on CRAN at


Comment: 5 pages

Subject: Computer Science - Symbolic Computation