View source: R/prepare_covariates.R
calc_dist | R Documentation |
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.
calc_dist(x, coord.names = c("x", "y"), smoothed = FALSE)
x |
data.frame with locations |
coord.names |
names of coordinates column in |
smoothed |
whether distance are smoothed or not |
vector of distance
Remi Patin
## Not run: calc_dist(df,coord.names = c("x","y"), smoothed = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.