incTime: Time incidences.

incTimeR Documentation

Time incidences.

Description

Convert a data frame with two numbers (normally a beginning year and end year) into an incidences matrix whose rows are the intermediate numbers, and whose columns are the content of the names column.

Usage

incTime(data, name = "name", beginning = "birth", end= "death")

Arguments

data

a data frame a name and two numbers.

name

Column with the names (default= "name").

beginning

Column with the beginning number to include (default= "birth").

end

Column with the end number to include (default= "death").

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 sociologists data
data("sociologists")
head(incTime(sociologists))[,1:5]

netCoin documentation built on March 31, 2023, 7:34 p.m.