Learn R Programming

seeds (version 0.9.1)

setInput: Set the inputs of the model.

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

setInput(odeModel, input)

# S4 method for 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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab