clustering_tm {tnet}R Documentation

Redefined clusering coefficient for two-mode networks

Description

This function calculates the two-mode clusering coefficient as proposed by Opsahl, T., 2009. Clustering in binary and weighted two-mode networks. Two-mode conference in Amsterdam.

Usage

clustering_tm(net)

Arguments

net A binary or weighted two-mode edgelist

Value

Returns the outcome of the equation presented in the paper

Note

version 1.0.0

Author(s)

Tore Opsahl; http://toreopsahl.com

References

Opsahl, T., 2009. Clustering in binary and weighted two-mode networks. Two-mode conference in Amsterdam.

Examples

# Weighted two-mode network
net <- cbind(
i=c(1,1,2,2,2,3,3,4,5,5,6),
p=c(1,2,1,3,4,2,3,4,3,5,5),
w=c(3,5,6,1,2,6,2,1,3,1,2))

## Run binary clustering function
clustering_tm(net[,1:2])

## Run weighted clustering function
clustering_tm(net)


[Package tnet version 0.1.2 Index]