Description Usage Arguments Value
View source: R/st_indicators.R
Get time series embeds and spatio-temporal indicators
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
df |
A data frame containing spatio-temporal information |
stations |
An |
k |
A numeric indicating the temporal embed size \(number\) |
betas |
A vector of values defining the maximum spatio-temporal distance allowed for an observation to be considered within a spatio-temporal neighbourhood |
alpha |
a weighting factor for the spatio-temporal distance |
var |
The name of the variable to summarize into indicators |
stats |
A vector containing the names of functions that are to be used to calculate summarizing statistics |
ratios2add |
A vector of Boolean values indicating, for each
statistic in |
neib_type |
the type of neighborhood to consider. Can be
|
parallel |
Boolean indicating whether the code should run in parallel. Default is FALSE |
nsplits |
Number of subsets of rows to split the data frame into so they can be processed in parallel |
time_id |
The name of the column containing
time-stamps in |
site_id |
The name of the column containing
location IDs in |
A data frame that contains extra columns <var>_Tm1, <var>_Tm2,
..., <var>_Tm<k-1> with previous observations for each location,
summary statistics of the values of var
found within the
spatio-temporal neighbourhoods of the one or more radiuses
of each pair (location ID, time-stamp) and ratios between them
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.