read.egonet: Reads ego-centric graph in table format and creates a matrix...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/codiciegonet.r

Description

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.

Usage

1
read.egonet(file, sep=",", dec=".", ego.name="EGO")

Arguments

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 EGO

Value

A square matrix containing the ego-centric network of the data in the file.

Author(s)

F. Gioachin, A. Sciandra, L. Finos <livio@stat.unipd.it>

See Also

read.table

Examples

1
2
3
dat <- read.egonet("http://www.egonet.associazionerospo.org/egonetdata/q1.csv")

dat

egonet documentation built on May 29, 2017, 3:27 p.m.