asNodes {netCoin} | R 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 |
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.
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)
[Package netCoin version 2.0.48 Index]