pr_dist: Distance travelled by an individual

pr_distR Documentation

Distance travelled by an individual

Description

This function computes, for every individual, the euclidean distance travelled between all antennas it has been read at.

Usage

pr_dist(block_df, block_ref_df, ant_coordinates)

Arguments

block_df

A data frame containing the reads from an experimental block

block_ref_df

A data frame containing a reference list with all individuals present in the experimental block.

ant_coordinates

A data frame containing four columns: "antenna","x","y","z" (where "x", "y", and "z" represent the coordinates in three domensions). If there is no z axis, enter all zeros but do not omit the column.

Value

A data frame containing two columns: "id", and "distance", indicating the travelled distance for every individual.


AparajithaRamesh/pondr documentation built on Sept. 14, 2023, 7:14 p.m.