Error in dplyr::mutate():
ℹ In argument: fit = stats::predict(curve).
ℹ In group 1: Well = G7.
Caused by error:
! fit must be size 373 or 1, not 2238.
Run rlang::last_trace() to see where the error occurred.
rlang::last_trace()
<error/dplyr:::mutate_error>
Error in dplyr::mutate():
ℹ In argument: fit = stats::predict(curve).
ℹ In group 1: Well = G7.
Caused by error:
! fit must be size 373 or 1, not 2238.
Backtrace:
▆
├─ipolygrowth::ipg_multisample(...)
│ ├─base::tryCatch(...)
│ ├─base::suppressMessages(...)
│ │ └─base::withCallingHandlers(...)
│ └─ipolygrowth::ipg_singlesample(...)
│ └─... %>% dplyr::mutate(diffOD = c(0, diff(fit, lag = 1)))
├─dplyr::mutate(., diffOD = c(0, diff(fit, lag = 1)))
├─dplyr::distinct(.)
├─dplyr::select(., time, fit)
├─dplyr::mutate(., fit = stats::predict(curve))
├─dplyr:::mutate.data.frame(., fit = stats::predict(curve))
Error in
dplyr::mutate()
: ℹ In argument:fit = stats::predict(curve)
. ℹ In group 1:Well = G7
. Caused by error: !fit
must be size 373 or 1, not 2238. Runrlang::last_trace()
to see where the error occurred.