Description Usage Arguments Value Examples
View source: R/MetGen_functions.R
Performs average value of climatic variable over different sites
1 | spatave.effect(var.mat, var.name, nstat = NULL, na.proc = FALSE)
|
var.mat |
A data frame containing a variable named "dates" in chron format and different climatic variables for each time step and for each site |
var.name |
Character object specifying the name of the climatic variable for which we will perfom spatial average |
nstat |
Numeric vector to define the number of sites used to obtain climatic series |
na.proc |
A logical value indicating whether NA values should be stripped before the computation proceeds |
An additional column will be added in the data frame introduced to contain the average of the variable of interest over the different sites for each time step
1 | temp_spatave <- spatave.effect(myclimatic_data, "temp", nstat = 3, na.proc = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.