Description Usage Arguments Value Examples
Prints a block of code that can be used to replicate the input object.
1 2 3 4 5 6 7 8 9 10 |
M |
a struct model, model_seq or iterator object |
start |
text prepended to the code. Default is "M = " |
mode |
"compact" will use the least amount of lines, "expanded" will put each object and input on a new line. "neat" will produce an output somewhere between "compact" and "extended". |
A string of code to reproduce the input object.
a string of code to reproduce the model
a string of code to reproduce the model sequence
a string of code to reproduce the iterator
1 2 3 4 5 6 7 8 | M = example_model(value_1 = 10)
as.code(M)
M = example_model()
as.code(M)
M = example_model()
as.code(M)
M = example_model()
as.code(M)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.