wide.to.long: Transform 'wide' alter-level data to the 'long'-format

Description Usage Arguments

Description

A function to transform a wide-format dataframe of ego-centric network data into a long-format data-frame, where every row represents one alter/dyad. In the created dataframe numerous networks can be distinguished by a network ID (egoID).

Usage

1
2
wide.to.long(wide, egoID = "egoID", max.alteri, start.col, end.col,
  ego.vars = NULL, var.wise = F)

Arguments

wide

A data.frame of alteri attributes in the wide format.

egoID

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

max.alteri

A numeric giving the maximum number of alteri.

start.col

Number of first colum containg alter-alter relation data. #!# Should: Defaults to first column of wide.

ego.vars

A data.frame of alteri attributes in the wide format.

var.wise

a logical value indicating wheter the alter attributes are stored variable-wise, if FALSE alter-wise storage is assumed.

last.col

Number of first colum containg alter-alter relation data. #!# Should: Defaults to last column of wide.


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