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).
1 2 | wide.to.long(wide, egoID = "egoID", max.alteri, start.col, end.col,
ego.vars = NULL, var.wise = F)
|
wide |
A |
egoID |
|
max.alteri |
A |
start.col |
Number of first colum containg alter-alter relation data.
#!# Should: Defaults to first column of |
ego.vars |
A |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.