mobileEdges | R Documentation |
Convert a data frame with one number (normally a year) into an edge list form with those whose numbers (years) have a difference lower or equal to a quantity.
mobileEdges(data, name = 1, number = 2, difference=0)
data |
a data frame with a name and a number (year). |
name |
Column with the names (default= first column). |
number |
Column with the number (year) to compare (default= second column. |
difference |
Minimum difference between numbers of every two pair of names to create the edge or link (default=15). |
A data frame in which the two first columns are source and target. The rest of the columns are sim.=(1+threshold-real difference) and dist.=(difference between numbers)
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
# From a random incidence matrix I(25X4)
data("sociologists")
mobileEdges(sociologists)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.