met.density: Density

View source: R/met.density.R

met.densityR Documentation

Density

Description

Calculates network binary density.

Usage

met.density(M, df = NULL)

Arguments

M

a square adjacency matrix, or a list of square adjacency matrices, or an output of ANT functions stat.ds.grp, stat.df.focal, stat.net.lk.

df

a data frame of same length as the input matrix or a list of data frames if argument M is a list of matrices or an output of ANT functions stat.ds.grp, stat.df.focal, stat.net.lk.

Details

Binary network density is sthe ratio of existing links of a network in relation to all potential links.

Value

  • a double representing the density of the network if argument M is a square matrix.

  • A list of doubles if argument M is a list of matrices and if argument df is NULL. Each double represents the density of the corresponding matrix of the list.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.

References

Sosa, S. (2018). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.

Examples

met.density(sim.m)

SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.