| overlaying | R Documentation |
This function basically appends the simulation output and add this to a reactiveValue
overlaying(out, input, savedsims = NULL)
out |
dataframe with the results from a simulation to be appended for overlaying |
input |
list with the input elements from a shiny app |
savedsims |
reactiveValue or list that contains the saved simulations |
a list with a dataframe with the appended simulations and settings
Richard Hooijmaijers
if(requireNamespace("shiny")){
out <- data.frame(time=0:4, A1=rnorm(5), numsim=1)
input <- shiny::reactiveValues(CL=2, KA=0.3, updOpts="appsim")
overlayres <- overlaying(out,input)
savedsims <- list(res = overlayres$results, sett = overlayres$settings)
overlayres <- overlaying(input=input,out=out,savedsims=savedsims)
head(overlayres$result)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.