Description Usage Arguments Details Value References
View source: R/st_indicators.R
Calculate spatio-temporal indicators of one or more variables within a spatio-temporal neighborhood of one or more maximum radius (in terms of spatio-temporal distance).
1 2 3 4 5 6 7 8 9 10 11 12 13 |
df |
A data frame containing spatio-temporal information |
stations_sf |
An |
radiuses |
A vector of values defining the maximum spatio-temporal distance allowed for an observation to be considered within a spatio-temporal neighbourhood |
stats |
A vector containing the names of functions that are to be used to calculate summarizing statistics |
alpha |
a weighting factor for the spatio-temporal distance |
neib_type |
the type of neighborhood to consider. Can be
|
time_id |
The name of the column containing
time-stamps in |
site_id |
The name of the column containing
location IDs in |
vars |
The name of the variables to summarize into indicators |
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 |
The spatio-temporal distance is defined as
D_{i,j} = d_{i,j} x α + t_{i,j} x (1-α)
where d_i,j is the spatial distance between locations, t_i,j is the temporal distance between time-stapms and α is a weighting factor.
A data frame that contains summary statistics
of the values of vars
found within the spatio-temporal
neighbourhoods of the one or more radiuses
of each pair
(location ID, time-stamp) in df
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.258.8742&rep=rep1&type=pdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.