dist_mat: Calculate distance matrix between points in the data

View source: R/spatial_funs.R

dist_matR Documentation

Calculate distance matrix between points in the data

Description

dist_mat calculates pairwise distances between all points in the data.

Usage

dist_mat(dat)

Arguments

dat

data.frame of movement data for a single burst. Needs to include burst, date, long, lat

Details

Distances are calculated using the function distGeo. Takes advantage of data.table for a fast implementation. Adapted from a post on StackOverflow.

Value

Returns data.table with distance matrix.


picardis/nestR documentation built on July 2, 2024, 6:35 p.m.