make_ShinyCGNM_initialCondition: make_ShinyCGNM_initialCondition

View source: R/shinyCGNM_related.R

make_ShinyCGNM_initialConditionR Documentation

make_ShinyCGNM_initialCondition

Description

A helper function to build the (optional) initial condition table accepted by generateCGNM_script's initialConditionData_table. This lets you set the value of an ODE compartment at time 0 explicitly, independently of (or together with) any dosing into that compartment from a dose table.

Usage

make_ShinyCGNM_initialCondition(ID, state, value, fileName = NA)

Arguments

ID

(required input) string or vector which individual(s) this initial condition applies to.

state

(required input) string or vector name of the ODE compartment (state variable) whose initial condition is being set.

value

(required input) number, string, or vector the initial condition. May be a plain number, or a string expression that references a parameter name (mirroring make_ShinyCGNM_doseData's dose argument), e.g. "V1*C0".

fileName

(default: NA) NA or string

Value

data.frame if fileName is NA Null if fileName is not NA but instead write out the csv file

Examples


make_ShinyCGNM_initialCondition(
ID="1",
state="central",
value=5
)


CGNM documentation built on Sept. 13, 2026, 9:06 a.m.