formating.var: Format variables

Description Usage Arguments Value Examples

View source: R/MetGen_functions.R

Description

Extraction of a variable of interest for each site separetly

Usage

1
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

1
2
nstat <- 3
temp_mat <- formating.var(myclimatic_data,"temp", nstat)

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