Hankin, R. K. S. and West, L. J. (2007) “Set Partitions in R”, Journal of Statistical Software, Code Snippets, 23(2), pp. 1–12. doi: 10.18637/jss.v023.c02.