get_spatial_dist_mat: Calculate spatial distance matrix

Description Usage Arguments Value See Also

View source: R/utils.R

Description

A function that calculates the geographical distance matrix between the locations of an sf object.

Usage

1
get_spatial_dist_mat(sites_sf, site_id)

Arguments

sites_sf

an sf object with the geograhic information of the locations (as returned by df2site_sf)

site_id

the column name of the location ID

Value

a matrix of distances. Row and column names are a concatenation of "SITE_" and the location IDs.

See Also

df2site_sf


mrfoliveira/STResampling-JDSA2020 documentation built on June 28, 2021, 7:01 p.m.