Learn R Programming

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

contact (version 1.2.1)

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

License

CC0

Maintainer

Trevor Farthing

Last Published

March 19th, 2020

Functions in contact (1.2.1)

confine

Identify and Remove Data Points Outside of a Specified Area
contactTest

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

Compare Observed Contacts to a Random Distribution
contact-defunct

Defunct functions in contact
baboons

Real-time location data for 19 baboons
contactCompare_mantel

Statistically Compare Two Contact Matrices
contactDur.area

Identify Environmental Contacts
dt.calc

Calculate Time Difference Between Relocations
dup

Identify and Remove Duplicated Data Points
contactDur.all

Identify Inter-animal Contacts
calves2018

Real-time location data for 20 calves in June 2018
mps

Identify and Remove Data Points Based on Observed Movement Speed
datetime.append

Append Date-Time Information to a Dataset
dateFake

Create Fake Date Information
ntwrkEdges

Compile List of Network Edges from a Contact Table
calves

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

Calculate Distances Between Individuals and Fixed Points/Polygons
findDistThresh

Identify Point-Based Distance Threshold for Contact
dist2All_df

Calculate Distances Between All Individuals
makePlanar

Project Geographic Coordinates onto a Plane
tempAggregate

Smooth Point-Locations Over Time
potentialDurations

Identify Potential Contact Durations
repositionReferencePoint

Move Data Point a Specified Distance
randomizeFeature

Randomize or Pseudorandomize Categorical Variables
summarizeContacts

Summarize Contact Events
timeBlock.append

Append TimeBlock Information to a Data Frame
randomizePaths

Randomize or Pseudorandomize Individuals' Relocation Events
referencePoint2Polygon

Create a Rectangular Polygon Using Planar XY Coordinates