cash-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 method for signature 'struct_class'
x$name

Arguments

x

An object derived from struct_class

name

The name of the slot to access

Value

Parameter/output value

Examples

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

struct documentation built on Nov. 8, 2020, 8:14 p.m.