setInput: Set the inputs of the model.

Description Usage Arguments Value Examples

Description

It the model has an input it can be set with this function. The inputs should be a dataframe, where the first column is the timesteps of the inputs in the second column.

Usage

1
2
3
4
setInput(odeModel, input)

## S4 method for signature 'odeModel'
setInput(odeModel, input)

Arguments

odeModel

an object of the class modelClass

input

function describing the ode equation of the model

Value

an object of odeModel

Examples

1
2
3
4
5
6
7
8
data("uvbModel")

model_times <- uvbModel@times
input <- rep(0,length(model_times))

input_Dataframe <- data.frame(t = model_times, u = input)

newModel <- setInput(odeModel = uvbModel,input = input_Dataframe)

Newmi1988/seeds documentation built on Aug. 7, 2021, 8:22 p.m.