read.egonet.two.files: Import ego-centric network data from two file format

Description Usage Arguments Value

Description

This function imports ego-centric network data, stored in two files, where one file contains the ego attributes and the edge information and the other file contains the alteri data. This form of data storage for ego-centered network data is proposed by Muller, Wellman and Marin (1999).

Usage

1
2
3
read.egonet.two.files(egos, alteri, netsize = NULL, egoID = "egoID",
  alterID = NULL, e.max.alteri, e.first.var, ego.vars = NULL,
  selection = NULL)

Arguments

egos

Data frame containg ego data (egos as cases)

alteri

Data frame containing alteri data (alteri as cases), alteri are separated by a variable containg an egoID.

netsize

Vector containing values of network size per ego.

egoID

Character. Name of the variable identifying egos (default: "egoID").

alterID

Character. Name of the variable identifying alteri (default: "alterID").

e.max.alteri

Maximum number of alteri that are included in edge data.

e.first.var

Index of first column in egos containing edge data.

ego.vars

Character vector naming variables in the egos data, in order to copy them in to the long alteri dataframe.

selection

Character naming numeric variable indicating alteri selection with zeros and ones.

Value

A list of six objects - the **egoR** object: (1) egos.df: dataframe of all egos and their attributes; (2) alteri.df: dataframe of all alteri; (3) alteri.list: list of dataframes of all alteri per ego; (4) edges: list of dataframes with edge lists per network; (5) graphs: list of igraph objects; (6) results: a result dataframe, pre-populated with the network size of each network


tilltnet/egonetR documentation built on May 31, 2019, 1:46 p.m.