powered by
Nodes data frame from either an edge list or a coin object.
coin
asNodes(C, frequency = TRUE, percentages = FALSE, language = c("en","es","ca"))
A data frame with nodes' names and their frequency and/or percentages if the input is a coin object
has to be an edge list or, better, a coin object.
add frequency of nodes
add nodes percentages
a character vector (es=spanish; en=english; ca=catalan).
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
Escobar, M. and Martinez-Uribe, L. (2020) Network Coincidence Analysis: The netCoin R Package. Journal of Statistical Software, 93, 1-32. tools:::Rd_expr_doi("10.18637/jss.v093.i11").
netCoin
R
# 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)
Run the code above in your browser using DataLab