calc_dist: Calculate distance between locations

Description Usage Arguments Value Author(s) Examples

View source: R/prepare_covariates.R

Description

calc_dist calculate distance between locations, taking a dataframe as input. Distance can also be smoothed over the two steps before and after the each point.

Usage

1
calc_dist(x, coord.names = c("x", "y"), smoothed = FALSE)

Arguments

x

data.frame with locations

coord.names

names of coordinates column in x

smoothed

whether distance are smoothed or not

Value

vector of distance

Author(s)

Remi Patin

Examples

1
## Not run: calc_dist(df,coord.names = c("x","y"), smoothed = T)

segclust2d documentation built on Oct. 11, 2021, 9:10 a.m.