Learn R Programming

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

contact (version 1.0.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.0.1

License

CC0

Maintainer

Trevor Farthing

Last Published

October 30th, 2019

Functions in contact (1.0.1)

calves2018

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

Calculate Distances Between All Individuals
datetime.append

Append Date-Time Information to a Dataset
contactTest

Determine if Observed Contacts are More or Less Frequent than in a Random Distribution
contactDur.all

Identify Inter-animal Contacts
dateFake

Create Fake Date Information
calves

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

Real-time location data for 19 baboons
confine

Identify and Remove Data Points Outside of a Specified Area
contactDur.area

Identify Environmental Contacts
ntwrkEdges

Compile List of Network Edges from a Contact Table
randomizeFeature

Randomize or Pseudorandomize Categorical Variables
randomizePaths

Randomize or Pseudorandomize Individuals' Relocation Events
referencePoint2Polygon

Create a Rectangular Polygon Using Planar XY Coordinates
dist2Area_df

Calculate Distances Between Individuals and Fixed Points/Polygons
makePlanar

Project Geographic Coordinates onto a Plane
dup

Identify and Remove Duplicated Data Points
mps

Identify and Remove Data Points Based on Observed Movement Speed
findDistThresh

Identify Distance Threshold for Contact
dt.calc

Calculate Time Difference Between Relocations
tempAggregate

Smooth Point-Locations Over Time
timeBlock.append

Append TimeBlock Information to a Data Frame
summarizeContacts

Summarize Contact Events
repositionReferencePoint

Move Data Point a Specified Distance