toIgraph: igraph object.

toIgraphR Documentation

igraph object.

Description

igraph object from a netCoin object.

Usage

toIgraph(net)

Arguments

net

is a netCoin object. See netCoin

Value

An igraph object.

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Examples

# A character column (with separator)
frame <- data.frame(A = c("Man; Women", "Women; Women",
                        "Man; Man", "Undet.; Women; Man"))
data <- dichotomize(frame, "A", sep = "; ")[2:4]
C <- coin(data) # coincidence matrix
N <- asNodes(C) # node data frame
E <- edgeList(C)
net <- netCoin(N, E)
toIgraph(net) # conversion into a igraph object

netCoin documentation built on Oct. 18, 2024, 5:10 p.m.