projecting_tm {tnet} | R Documentation |
This function is the implemtation of the procedure outlined on
http://toreopsahl.com/2009/05/01/projecting-two-mode-networks-onto-weighted-one-mode-networks/
projecting_tm(net, method = "sum")
net |
A two-mode edgelist |
method |
The method-switch control the method used to calculate the weights. |
Returns a one-mode network
version 1.0.0
Tore Opsahl; http://toreopsahl.com
Opsahl. T., 2009. Projecting two-mode networks onto weighted one-mode networks. Available at: http://toreopsahl.com/2009/05/01/projecting-two-mode-networks-onto-weighted-one-mode-networks/
## define two-mode network
two.mode.net <- cbind(
i=c(1,1,2,2,2,2,2,3,4,5,5,5,6),
p=c(1,2,1,2,3,4,5,2,3,4,5,6,6))
## Run the function
projecting_tm(two.mode.net, method="Newman")