runSimulation: Execute Simulation Based on User Inputs

View source: R/replext_helpers.R

runSimulationR Documentation

Execute Simulation Based on User Inputs

Description

This internal function manages the simulation process in a Shiny app environment. It dynamically selects the appropriate simulation function based on the selected cell block and passes user inputs to this function. The function also handles the setting of a random number seed, if provided, to ensure reproducibility of results.

Usage

runSimulation(input)

Arguments

input

A list of inputs gathered from the Shiny app's UI, including the selected cell block and other parameters necessary for the simulation.

Value

The result of the simulation function that corresponds to the selected cell block. This result is typically a data frame containing the outcomes of the simulation.


npboottprm documentation built on Sept. 13, 2024, 5:06 p.m.