mobileEdges: Mobile Edges.

mobileEdgesR Documentation

Mobile Edges.

Description

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)

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).

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)

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Examples

# From a random incidence matrix I(25X4)
data("sociologists")
mobileEdges(sociologists)

netCoin documentation built on Oct. 18, 2024, 5:10 p.m.