conPairs: Identify contact pairs

Description Usage Arguments Details Value See Also Examples

View source: R/conPairs.R

Description

Create a dataframe where each row represents a single contact pair.

Usage

1
conPairs(ltraj)

Arguments

ltraj

an object of the class ltraj which is output from the function conProcess or conPhase.

Details

This function is used to extract contact pairs following use of the conProcess or conPhase function. The returned data frame has two new columns: contact_orig_rowid - the original row id of that particular fix, and contact_pair_id - a unique identifier to show which two fixes are represented by a pair of contacts. The number of unique pairs of contacts is then the highest number in this column, and will be equal to half the number of rows in the data frame.

Value

A data frame, where each row represents one of the two fixes in each unique contact pair.

See Also

conProcess, conPhase

Examples

1
2
3
4
5
6
7
8
## Not run: 
data(does)
doecons <- conProcess(does,tc=15*60,dc=50)
doephas <- conPhase(doecons,pc=60*60)
prs <- conPairs(doephas)
head(prs)

## End(Not run)

wildlifeDI documentation built on June 16, 2021, 5:07 p.m.