Description Usage Arguments Value Methods (by class) Examples
Gets or sets the object of an output e.g. to an entity() object.
1 2 3 4 5 6 7 8 9 | output_obj(obj, name)
output_obj(obj, name) <- value
## S4 method for signature 'struct_class,character'
output_obj(obj, name)
## S4 replacement method for signature 'struct_class,character'
output_obj(obj, name) <- value
|
obj |
A model or iterator object derived from the *struct* class |
name |
Name of output |
value |
A valid value for the output being set |
output_obj(M,name)
returns the named output as an object
output_obj(M,name)<-
sets the named output of an object
the modified object
obj = struct_class,name = character
:
obj = struct_class,name = character
:
1 2 3 4 5 6 | # get the output as an object
M = example_model()
obj = output_obj(M, 'result_1')
# set a output as an object
output_obj(M, 'result_1') = entity(value = 15,type = 'numeric',name = 'result_1')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.