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] (1523)    (1245)    (14)(35)  (1342)    (1452)    (12)(354) (2345)   
#>  [8] (15)(34)  (23)(45)  (134)    
#> [coerced from word form]

inverse(a)
#>  [1] (234)    (14)(25) (1542)   (135)    (135)    (143)    (153)    (142)   
#>  [9] (35)     (15)(24)
#> [coerced from word form]