met.ri.single: R-Index

View source: R/met.ri.single.R

met.ri.singleR Documentation

R-Index

Description

Calculate for all the vertices the node metric call R-Index.

Usage

met.ri.single(M, df = NULL, dfid = NULL)

Arguments

M

a square adjacency matrix.

df

a data frame of same length of the input matrix.

dfid

an integer indicating the column of individual ids in argument df

Details

R-Index of vertice i is the outstrength of node i divided by the met.strength of node i. Such node metric atempt to measur if an individual have more tendency to receive or emit edges.

Value

Integer vector of each vertices R-Index values. If the adjacency matrix is binary it will return the binari R-index. If the adjacency matrix is weigthed it will return the binari R-index.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.


SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.