Learn R Programming

contact (version 1.2.8)

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

License

CC0

Maintainer

Trevor Farthing

Last Published

May 17th, 2021

Functions in contact (1.2.8)

contact-defunct

Defunct functions in contact
contactCompare_binom

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

Calculate Distances Between Individuals and Fixed Points/Polygons
confine

Identify and Remove Data Points Outside of a Specified Area
dt.calc

Calculate Time Difference Between Relocations
calves2018

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

Real-time location data for 19 baboons
tempAggregate

Smooth Point-Locations Over Time
makePlanar

Project Geographic Coordinates onto a Plane
calves

Real-time location data for 10 calves on May 2nd 2016
datetime.append

Append Date-Time Information to a Dataset
contactCompare_chisq

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

Identify and Remove Data Points Based on Observed Movement Speed
dist2All_df

Calculate Distances Between All Individuals
referencePoint2Polygon

Create a Rectangular Polygon Using Planar XY Coordinates
repositionReferencePoint

Move Data Point a Specified Distance
contactCompare_mantel

Statistically Compare Two Contact Matrices
dup

Identify and Remove Duplicated Data Points
findDistThresh

Identify Point-Based Distance Threshold for Contact
socialEdges

Identify Edges in Social Networks
dateFake

Create Fake Date Information
timeBlock.append

Append TimeBlock Information to a Data Frame
contactTest

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

Identify Environmental Contacts
contactDur.all

Identify Inter-animal Contacts
randomizeFeature

Randomize or Pseudorandomize Categorical Variables
summarizeContacts

Summarize Contact Events
ntwrkEdges

Compile List of Network Edges from a Contact Table
potentialDurations

Identify Potential Contact Durations
randomizePaths

Randomize or Pseudorandomize Individuals' Relocation Events