incTime.Rd
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.
incTime(data, name = "name", beginning = "birth", end= "death")
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"). |
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/
#> Karl Marx Friedrich Engels Hebert Spencer Wilhelm Dilthey #> 1818 1 0 0 0 #> 1819 1 0 0 0 #> 1820 1 1 1 0 #> 1821 1 1 1 0 #> 1822 1 1 1 0 #> 1823 1 1 1 0 #> William Graham Sumner #> 1818 0 #> 1819 0 #> 1820 0 #> 1821 0 #> 1822 0 #> 1823 0