extract_component: Extract components

View source: R/utilities.R

extract_componentR Documentation

Extract components

Description

This function extract the matrix of different components

Usage

extract_component(A, maximum = TRUE, position = NULL)

Arguments

A

A matrix

maximum

Whether to extract the maximum component

position

Whether to extract the component in the ith size position

Value

A matrix or a list of matrices with the required components

Author(s)

Alejandro Espinosa-Rada

References

Wasserman, S. and Faust, K. (1994). Social network analysis: Methods and applications. Cambridge University Press.

Examples


A <- FIFAex$Matrix
rownames(A) <- FIFAex$label
colnames(A) <- rownames(A)
extract_component(A, maximum = TRUE)
extract_component(A, maximum = FALSE, position = 2)

anespinosa/netmem documentation built on April 5, 2025, 5:02 p.m.