Learn R Programming

tnet (version 0.1.0)

tnet-package: Collection of function for analysing weighted networks, two-mode networks, and longitudinal networks

Description

This package is all about analysis of weighted networks, two-mode networks, and longitudinal networks. Binary relations limit the richness of network relations as all relations are unique. The two-mode structure contains a number of features lost when projection. Longitudinal dataset can allow for an understanding of the causal relationship as all elements of a cross-sectional dataset depends on each other.

Arguments

Details

ll{ Package: tnet Type: Package Version: 0.1.0 Date: 2009-06-15 } This package allows for analysis of weighted network, two-mode network, and longitudinal network datasets. More information is available on http://opsahl.co.uk/tnet/ and http://toreopsahl.com It reads three forms of data structures: 1) simple weighted data in the following format (vertex.id.of.creator vertex.id.of.target weight.of.tie): 1 2 4 1 3 2 2) two-mode data in the following format (vertex.id.of.node.in.set.1 vertex.id.of.node.in.set.2 optional.weight.of.tie): 1 1 1 2 1 2 3) timed data in the following format (MySQL-timestamp.surrounded.by.quotes vertex.id.of.creator vertex.id.of.target weight): "2007-09-12 13:45:00" 1 2 1 "2007-09-12 13:46:31" 1 2 1 If ties are repeated, the tie increases the weighted. The weight column decides how much weight is added at each time (this can take a negative value to decrease the weight). Attribute files are read as follows: 0 1 3 0 3 2 1 3 3 where the first row refers to vertex id 1, the second row to vertex id 2, and so on. The first column refers to the first attributes, second column to the second attribute and so on.

References

http://opsahl.co.uk/tnet/

See Also

SNA sna

Examples

Run this code
# Generate a random weighted graph
rg <- rg_w(nodes=100,arcs=300,directed=TRUE)

# Calculate clustering coefficient
clustering_w(rg)

Run the code above in your browser using DataLab