formating.var {MetGen} | R Documentation |
Format variables
Description
Extraction of a variable of interest for each site separetly
Usage
formating.var(var.mat, var.name, nstat)
Arguments
var.mat |
data frame containing chron variable, geographical information and different climatic variables for each time step and for each site |
var.name |
character object that forms the name of the climatic variable to be picked up from the data frame according to sites |
nstat |
numeric vector that contains the number of gauged sites included in the data frame |
Value
a new data frame is returned with time steps and temporal series of the variable of interest arranged in columns according to sites
Examples
nstat <- 3
temp_mat <- formating.var(myclimatic_data,"temp", nstat)
[Package MetGen version 0.5 Index]