Description Usage Arguments Value Author(s) Examples
View source: R/egonet_code.R View source: R/read.egonet.R
Reads egocentric graph in table format and creates a matrix suitable for SNA Reads text table and creates ego-centric graph from it, with the ego actor in the first row and column. The result is a square matrix with common input/output connection' names.
1 | read.egonet(file, sep = ",", dec = ".", ego.name = "EGO")
|
file |
the name of the file which the data are to be read from. It must be a square matrix, with node's names in the first row and column. See also file of read.table |
sep |
as in read.table |
dec |
as in read.table |
ego.name |
column and row name given to the ego subject. The default is |
A square matrix containing the ego-centric network of the data in the file.
Per tutte le altre funzioni, l'output e' un vector
della stessa
lunghezza di testo
ma con testi normalizzati.
Livio Finos, Andrea Sciandra
1 2 | dat <- read.egonet(system.file("extdata", "q1.csv", package="egonet"))
dat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.