formating.var {MetGen} | R Documentation |
Extraction of a variable of interest for each site separetly
formating.var(var.mat, var.name, nstat)
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 |
a new data frame is returned with time steps and temporal series of the variable of interest arranged in columns according to sites
nstat <- 3
temp_mat <- formating.var(myclimatic_data,"temp", nstat)