get_spatial_dist_mat: Calculate spatial distance matrix

Description Usage Arguments Value See Also

View source: R/st_indicators.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/Evaluation-procedures-for-forecasting-with-spatio-temporal-data documentation built on April 11, 2021, 10:50 a.m.