is_param: Verify parameter

Description Usage Arguments Value Methods (by class) Examples

Description

Verify that the input name is a valid input parameter for an object

Usage

1
2
3
4
is_param(obj, name)

## S4 method for signature 'struct_class'
is_param(obj, name)

Arguments

obj

An object derived from struct_class

name

Name of parameter

Value

TRUE if parameter name is valid, FALSE if not

Methods (by class)

Examples

1
2
3
M = example_model()
is_param(M,'value_1') # TRUE
is_param(M,'alpha')   # FALSE

computational-metabolomics/struct documentation built on Nov. 17, 2021, 8:57 a.m.