node_degree: Calculate node degree

Description Usage Arguments Value Examples

View source: R/node_degree.R

Description

The function calculates the node degree of a network

Usage

1

Arguments

net

numeric matrix

Value

node_degree numeric array

Examples

1
2
3
4
5
6
net <- cor( matrix(rnorm(1000), ncol=10)) 
n <- 10
net <- matrix(rank(net, na.last = 'keep', ties.method = 'average'), nrow = n, ncol = n)
net <- net/max(net, na.rm=TRUE)
nd <- node_degree(net)
 

sarbal/EGAD documentation built on May 5, 2021, 5:10 p.m.