Skip to contents

Manipulates invertible functions from a finite set to itself. Can transform from word form to cycle form and back. To cite the package in publications please use Hankin (2020) "Introducing the permutations R package", SoftwareX, volume 11 <doi:10.1016/j.softx.2020.100453>.

Details

The DESCRIPTION file: This package was not yet installed at build time.
Index: This package was not yet installed at build time.

Author

Robin K. S. Hankin [aut, cre] (<https://orcid.org/0000-0001-5982-0415>), Paul Egeler [ctb] (<https://orcid.org/0000-0001-6948-9498>)

Maintainer: Robin K. S. Hankin <hankin.robin@gmail.com>

Examples

a <- rperm(10,5)
b <- rperm(10,5)

a*b
#>  [1] (123)     (1254)    (1253)    (135)(24) (132)(45) (12543)   (12345)  
#>  [8] (124)     (1543)    (14)     
#> [coerced from word form]

inverse(a)
#>  [1] (1453)   (13)(45) (14253)  (1534)   (1245)   (1534)   (1235)   (1435)  
#>  [9] (154)    (12)(35)
#> [coerced from word form]