Description Usage Arguments Details Value Examples
The function grabs ego ids and its nominations and creates an edgelist in which the labels (ids) are recoded such that ids go from 1 to n.
1 2 | survey_to_edgelist(data, ego.id, alter.id, group.id = NULL, time = NULL,
group.sep = "-", time.sep = "-")
|
data |
A |
ego.id, alter.id |
Character scalars. Names of the variables in |
group.id |
Character vector. |
time |
Character vector. |
group.sep |
Character scalar. |
time.sep |
Character scalar. |
By default, ego.id
and alter.id
are transform to factor variables, so the
user doesn't need to worry about giving individuals in the survey a special
coding
If no group.id
or time
are provided, an integer matrix with
two named columns (ego and alter), and an attribute "labels
". Otherwise
will return a nested list in which the first level is given by group.id
,
and the second level by time
(if provided).
1 | 1+1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.