Learn R Programming

⚠️There's a newer version (1.2.8) of this package.Take me there.

contact (version 1.2.4)

Creating Contact and Social Networks

Description

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.

Copy Link

Version

Install

install.packages('contact')

Monthly Downloads

115

Version

1.2.4

License

CC0

Maintainer

Trevor Farthing

Last Published

July 21st, 2020

Functions in contact (1.2.4)

calves

Real-time location data for 10 calves on May 2nd 2016
contactCompare_mantel

Statistically Compare Two Contact Matrices
contact-defunct

Defunct functions in contact
contactDur.all

Identify Inter-animal Contacts
confine

Identify and Remove Data Points Outside of a Specified Area
baboons

Real-time location data for 19 baboons
contactCompare_binom

Exact Binomial Test for Comparing Observed Contacts to a Random Distribution
contactCompare_chisq

Compare Observed Contacts to a Random Distribution Using Chi-Square GoF
calves2018

Real-time location data for 20 calves in June 2018
contactDur.area

Identify Environmental Contacts
dist2Area_df

Calculate Distances Between Individuals and Fixed Points/Polygons
datetime.append

Append Date-Time Information to a Dataset
dt.calc

Calculate Time Difference Between Relocations
dist2All_df

Calculate Distances Between All Individuals
findDistThresh

Identify Point-Based Distance Threshold for Contact
dup

Identify and Remove Duplicated Data Points
contactTest

Determine if Observed Contacts are More or Less Frequent than in a Random Distribution (Defunct)
timeBlock.append

Append TimeBlock Information to a Data Frame
dateFake

Create Fake Date Information
tempAggregate

Smooth Point-Locations Over Time
repositionReferencePoint

Move Data Point a Specified Distance
referencePoint2Polygon

Create a Rectangular Polygon Using Planar XY Coordinates
summarizeContacts

Summarize Contact Events
socialEdges

Identify Edges in Social Networks
randomizeFeature

Randomize or Pseudorandomize Categorical Variables
randomizePaths

Randomize or Pseudorandomize Individuals' Relocation Events
mps

Identify and Remove Data Points Based on Observed Movement Speed
potentialDurations

Identify Potential Contact Durations
makePlanar

Project Geographic Coordinates onto a Plane
ntwrkEdges

Compile List of Network Edges from a Contact Table