dichotomise {tnet}R Documentation

Dichotomise a weighted network into a binary network

Description

The dichotomise function creates a binary network from a weighted edgelist.

Usage

dichotomise(net,GT=0)

Arguments

net A weighted edgelist
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.

Note

version 1.0.0

Author(s)

Tore Opsahl; http://toreopsahl.com

References

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

Examples

## Load sample data
sample <- rbind(
c(1,2,4),
c(1,3,2),
c(2,1,4),
c(2,3,4),
c(2,4,1),
c(2,5,2),
c(3,1,2),
c(3,2,4),
c(4,2,1),
c(5,2,2),
c(5,6,1),
c(6,5,1))

## Run the programme
dichotomise(sample, GT=2)


[Package tnet version 0.1.2 Index]