Learn R Programming

netCoin (version 2.1.0)

asNodes: 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"))

Value

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

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).

Author

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. tools:::Rd_expr_doi("10.18637/jss.v093.i11").

Examples

Run this code
# 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