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.
Usage
mobileEdges(data, name = 1, number = 2, difference=0)
Value
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)
Arguments
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).