ga_model_edit | R Documentation |
Change features of a model by changing the functions within it.
ga_model_edit(
model,
data_f = NULL,
required_columns = NULL,
model_f = NULL,
required_packages = NULL,
description = NULL,
outputShiny = shiny::plotOutput,
renderShiny = shiny::renderPlot,
inputShiny = NULL,
output_f = NULL
)
model |
The model to edit - if a filepath will load model and save back edited model to the same file |
data_f |
A function that gets the data |
required_columns |
What dimensions and metrics are required |
model_f |
A function that inputs data, and outputs a list of assets -
must take data from result of |
required_packages |
The packages needed for |
description |
An optional description of what the model does |
outputShiny |
A shiny UI output function that will display the results |
renderShiny |
A shiny render function that will create the output for |
inputShiny |
Optional input shiny functions (like |
output_f |
A function that inputs the output from |
Other GA modelling functions:
ga_model()
,
ga_model_example()
,
ga_model_load()
,
ga_model_make()
,
ga_model_save()
,
ga_model_shiny()
,
ga_model_shiny_load()
,
ga_model_shiny_template()
,
ga_model_write()
## Not run:
decomp_ga <- ga_model_example("decomp_ga.gamr")
decomp_ga
# edit its description
ga_model_edit(decomp_ga, description = "Changed")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.