get_time_dist_mat: Calculate temporal distance matrix

Description Usage Arguments Value

View source: R/st_indicators.R

Description

A function that calculates a distance matrix of time-stamps

Usage

1
get_time_dist_mat(times, origin = min(times))

Arguments

times

A vector of time-stamps

origin

A date to use as origin for difftime

Value

a matrix of distances. Row and column names are a concatenation of "TIME_" and the time-stamp.


mrfoliveira/Evaluation-procedures-for-forecasting-with-spatio-temporal-data documentation built on April 11, 2021, 10:50 a.m.