validatePars: Validate parameters

Description Usage Arguments Details

View source: R/utilities_soundgen.R

Description

Internal soundgen function

Usage

1
validatePars(p, gp, def, invalidArgAction = c("adjust", "abort", "ignore")[1])

Arguments

p

parameter name

gp

parameter value

def

matrix or dataframe containing reference values (low, high, default)

invalidArgAction

what to do if an argument is invalid or outside the range: 'adjust' = reset to default value, 'abort' = stop execution, 'ignore' = throw a warning and continue (may crash)

Details

Checks whether the value of a numeric parameter falls within the allowed range. Options: abort, reset to default, throw a warning and continue.


soundgen documentation built on June 20, 2021, 1:06 a.m.