Learn R Programming

TDMR (version 2.2)

tdmOptsDefaultsFill: Fill the current opts.

Description

There is no need to call this function directly, use tdmOptsDefaultsSet(opts) instead, which calls tdmOptsDefaultsFill in the end. tdmOptsDefaultsFill fills the current opts with further default parameters if they are not yet defined. The defaults may depend on previously defined elements of opts (e.g. opts$filename).

Usage

tdmOptsDefaultsFill(opts)

Arguments

opts

the options

Value

opts, the extended options, where additional elements, if they are not yet defined, are set as:

TST.COL

["TST.COL"]

PDFFILE

["*_pic.pdf"] file for multipage graphics in case opts$GD.DEVICE="pdf"

GD.PNGDIR

["PNG*"] directory for .png files in case opts$GD.DEVICE="png"

LOGFILE

["*.log"] where to log the output

EVALFILE

["*_eval.csv"] file with evaluation results allEVAL

SRF.samp

sample size for SRF, derived from RF.samp

rgain.string

one out of c("RGain", "MeanCA", "MinCA", "RMAE","RMSE", "MADE", "AreaROC", "AreaLift", "AreaPrRe"), depending on opts$rgain.type

Here * is the stripped part of opts$filename (w/o suffix).

All files and directories in the above settings are relative to dir opts$dir.output.

Details

What is the difference between tdmOptsDefaultsSet and tdmOptsDefaultsFill? -- tdmOptsDefaultsSet is used for all parameters that do NOT depend on previously defined elements of opts. tdmOptsDefaultsFill is used to fill in further opts elements, if not yet defined, depending on previous settings (e. g. opts$LOGFILE is derived from opts$filename).

See Also

tdmOptsDefaultsSet