contact: Creating Contact and Social Networks

Process spatially- and temporally-discrete data into contact and social networks, and facilitate network analysis by randomizing individuals' movement paths and/or related categorical variables. To use this package, users need only have a dataset containing spatial data (i.e., latitude/longitude, or planar x & y coordinates), individual IDs relating spatial data to specific individuals, and date/time information relating spatial locations to temporal locations. The functionality of this package ranges from data "cleaning" via multiple filtration functions, to spatial and temporal data interpolation, and network creation and analysis. Functions within this package are not limited to describing interpersonal contacts. Package functions can also identify and quantify "contacts" between individuals and fixed areas (e.g., home ranges, water bodies, buildings, etc.). As such, this package is an incredibly useful resource for facilitating epidemiological, ecological, ethological and sociological research.

Version: 1.2.8
Depends: R (≥ 3.6.0)
Imports: ape (≥ 5.3), data.table (≥ 1.12.2), doParallel (≥ 1.0.15), foreach (≥ 1.4.8), igraph (≥, lubridate (≥ 1.7.4), parallel (≥ 3.6.0), raster (≥ 2.9-5), rgdal (≥ 1.4-4), rgeos (≥ 0.4-3), sp (≥ 1.3-1), stats (≥ 3.6.0)
Suggests: knitr, rmarkdown
Published: 2021-05-17
Author: Trevor Farthing [aut, cre], Daniel Dawson [aut], Cristina Lanzas [ctb]
Maintainer: Trevor Farthing <tsfarthi at>
License: CC0
NeedsCompilation: no
Citation: contact citation info
CRAN checks: contact results


Reference manual: contact.pdf
Vignettes: Using_the_contact_package


Package source: contact_1.2.8.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): contact_1.2.8.tgz, r-release (x86_64): contact_1.2.8.tgz, r-oldrel: contact_1.2.8.tgz
Old sources: contact archive


Please use the canonical form to link to this page.