'Error in func(time, state, parms, ...) : unused argument (parms)' when using lsoda to create dataframe from function

This is the code that is being used. The error message is above.
y0 <- 0
parms <- c(c_0, k_a, k_c)
c_0 <- 175
k_a <- 0.16
k_c <-0.605
times <- seq(0, 24, 0.15)

blood_rate_solution <- lsoda(y = y0, times = times,
fun = calculate_blood_rate, parms=parms)

The documentation shows there is no argument named fun but there is one named func. Perhaps your use of fun is confusing lsoda().

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.