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] (ORCID: <https://orcid.org/0000-0001-5982-0415>), Paul Egeler [ctb] (ORCID: <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] (142)     (1435)    (14523)   (1243)    (123)     (14325)   (1524)   
#>  [8] (2453)    (152)(34) (15243)  
#> [coerced from word form]

inverse(a)
#>  [1] (12534)   (234)     (12)      (135)     (1452)    (132)(45) (15)     
#>  [8] (1523)    (154)(23) (234)    
#> [coerced from word form]