output_obj | R Documentation |
Gets or sets the object of an output e.g. to an entity() object.
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
# 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.