Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

npartite

Computes indices for a masked-one-mode network


Description

Computes network indices for networks that are represented as stacks of bipartite networks (“npartite”), thus having many impossible links.

Usage

npartite(as.one.mode.web, index=c("connectance", "links per species", "mean degree"))

Arguments

as.one.mode.web

a one-mode representation of a network; if this is based on several bipartite networks, i.e. species in levels NOT interacting within that level OR without interactions between separated levels (e.g. 1st and 3rd) then such forbidden links must be represented as NA! For bipartite networks this can easily be achieved using as.one.mode(., fill=NA), but obviously for bipartite networks this function is obsolete.

index

Vector of names of indices to be computed for the npartite network. Currently only connectance and links per species (=mean degree) are available.

Value

A named list of indices.

Note

An attempt is made to ensure that these indices converge to the same value as returned for a bipartite network!

Author(s)

See Also

Examples

image(aomw <- as.one.mode(Safariland, fill=NA))
npartite(aomw)
networklevel(Safariland, index=c("connectance", "links per species"))

bipartite

Visualising Bipartite Networks and Calculating Some (Ecological) Indices

v2.16
GPL
Authors
Carsten F. Dormann, Jochen Fruend and Bernd Gruber, with additional code from Stephen Beckett, Mariano Devoto, Gabriel Felix, Jose Iriondo, Tove Opsahl, Rafael Pinheiro, Rouven Strauss and Diego Vazquez, also based on C-code developed by Nils Bluethgen, Aaron Clauset/Rouven Strauss and Miguel Rodriguez-Girones
Initial release
2021-02-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.