npartite: Computes indices for a masked-one-mode network

View source: R/npartite.R

npartiteR Documentation

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)

Carsten F. Dormann carsten.dormann@biom.uni-freiburg.de

See Also

as.one.mode.

Examples

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

bipartite documentation built on May 29, 2024, 2:23 a.m.