Welcome to the incidentally package! The incidentally package implements methods to generate incidence matrices, which can represent bipartite (aka two-mode, affiliation) networks.

The incidentally package can be cited as:

Neal, Z. P. (2022). incidentally: An R package for generating incidence matrices and bipartite graphs. OSF Preprints.


The /release branch contains the current CRAN release of the incidentally package. You can install it from CRAN with:


The /devel branch contains the working beta version of the next release of the incidentally package. All the functions are documented and have undergone various levels of preliminary debugging, so they should mostly work, but there are no guarantees. Feel free to use the devel version (with caution), and let us know if you run into any problems. You can install it You can install from GitHub with:

install_github("zpneal/incidentally", ref = "devel", build_vignettes = TRUE)