overlaying: Performs overlaying of simulations

View source: R/overlaying.r

overlayingR Documentation

Performs overlaying of simulations

Description

This function basically appends the simulation output and add this to a reactiveValue

Usage

overlaying(out, input, savedsims = NULL)

Arguments

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

Value

a list with a dataframe with the appended simulations and settings

Author(s)

Richard Hooijmaijers

Examples

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)
}


amp.sim documentation built on May 7, 2026, 5:08 p.m.