read.egonet: Reads egocentric graph in table format and creates a matrix...

Description Usage Arguments Value Author(s) Examples

View source: R/egonet_code.R View source: R/read.egonet.R

Description

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.

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.

Per tutte le altre funzioni, l'output e' un vector della stessa lunghezza di testo ma con testi normalizzati.

Author(s)

Livio Finos, Andrea Sciandra

Examples

1
2
dat <- read.egonet(system.file("extdata", "q1.csv", package="egonet"))
dat

scan2001/egonet documentation built on Jan. 19, 2020, 3:22 p.m.