Learn R Programming

tnet (version 3.0.16)

dichotomise_tm: Dichotomise a weighted two-mode network into a binary two-mode network

Description

The dichotomise function creates a binary two-mode network from a weighted edgelist.

Usage

dichotomise_tm(net,GT=0)

Arguments

net

A weighted two-mode network

GT

the cut-off parameter. Default is set to 0, so edges/arcs with a weight greater than 0 is set to 1.

Value

Returns the edgelist with edges below the cut-off removed, and all weights equal to 1.

References

http://toreopsahl.com/2008/11/28/network-weighted-network/

Examples

Run this code
# NOT RUN {
## Load sample data
sample <- 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 the programme
dichotomise_tm(sample, GT=2)

# }

Run the code above in your browser using DataLab