spatave.effect: Spatial average

Description Usage Arguments Value Examples

View source: R/MetGen_functions.R

Description

Performs average value of climatic variable over different sites

Usage

1
spatave.effect(var.mat, var.name, nstat = NULL, na.proc = FALSE)

Arguments

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

Value

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

Examples

1
temp_spatave <- spatave.effect(myclimatic_data, "temp", nstat = 3, na.proc = TRUE) 

MetGen documentation built on July 2, 2020, 1:46 a.m.