cash-set-struct_class-method: Get/set parameter or output values

Description Usage Arguments Value Examples

Description

Dollar syntax can be used to as a shortcut for getting/setting input parameter and output values for struct objects.

Usage

1
2
## S4 replacement method for signature 'struct_class'
x$name <- value

Arguments

x

An object derived from struct_class

name

The name of the slot to access

value

The value to assign

Value

Parameter/output value

Examples

1
2
3
M = example_model()
M$value_1 = 10
M$value_1 # 10

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