Learn R Programming

HydroPortailStats (version 1.1.0)

Import_HBayConfig: Import HBay Configuration folder

Description

Imports configuration data as specified with HBay executable. Returns NULL if configuration folder is not found

Usage

Import_HBayConfig(path)

Value

A list with the following components (see ?Hydro3_HBay for details):

y

numeric matrix, data.

dist

character, distribution name.

prior

list of lists, prior distributions.

SystErrorIndex

integer vector, index of systematic errors.

SystErrorPrior

list of lists, prior distribution for each systematic error.

options

list, inference options.

mcmcoptions

list, MCMC options.

year

numeric vector, years.

Arguments

path

character, path to configuration folder.

Examples

Run this code
config=Import_HBayConfig('path/to/config')
if(!is.null(config)){
  H3=Hydro3_HBay(y=config$y,dist=config$dist,prior=config$prior,
               SystErrorIndex=config$SystErrorIndex,
               SystErrorPrior=config$SystErrorPrior,
               options=config$options,
               mcmcoptions=config$mcmcoptions)
  Hydro3_Plot(H3)
}

Run the code above in your browser using DataLab