wide.to.long | R Documentation |
A function to transform a wide-format dataframe of ego-centered 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).
wide.to.long(
wide,
egoID = "egoID",
max.alters,
start.col,
end.col,
var.wise = FALSE
)
wide |
A |
egoID |
|
max.alters |
A |
start.col |
Index or name of the first column containing alter-alter relation data.
#!# Should: Defaults to first column of |
end.col |
Index or name of the first column containing alter-alter relation data.
#!# Should: Defaults to last column of |
var.wise |
a logical value indicating whether the alter attributes are stored variable-wise, if FALSE alter-wise storage is assumed. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.