asNodes: Nodes data frame.

asNodesR Documentation

Nodes data frame.

Description

Nodes data frame from either an edge list or a coin object.

Usage

asNodes(C, frequency = TRUE, percentages = FALSE, language = c("en","es","ca"))

Arguments

C

has to be an edge list or, better, a coin object.

frequency

add frequency of nodes

percentages

add nodes percentages

language

a character vector (es=spanish; en=english; ca=catalan).

Value

A data frame with nodes' names and their frequency and/or percentages if the input is a coin object

Author(s)

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

References

Escobar, M. and Martinez-Uribe, L. (2020) Network Coincidence Analysis: The netCoin R Package. Journal of Statistical Software, 93, 1-32. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v093.i11")}.

Examples

# From a random incidence matrix I(25X4)
I <- matrix(rbinom(100, 1, .5), nrow = 25, ncol = 4,
     dimnames = list(NULL, c("A", "B", "C", "D")))
C <- coin(I)
asNodes(C)

netCoin documentation built on March 31, 2023, 7:34 p.m.