What I'm doing wrong here when trying to convert an nlmrt object to an nls object
问题 I am trying to convert an "nlmrt object to an "nls" object using nls2 . However, I can only manage to do it if I write explicitly the names of the parameters in the call. Can't I define the parameter names programmatically? See the reproducible example: library(nlmrt) scale_vector <- function(vector, ranges_in, ranges_out){ t <- (vector - ranges_in[1, ])/(ranges_in[2, ]-ranges_in[1, ]) vector <- (1-t) * ranges_out[1, ] + t * ranges_out[2, ] } shobbs.res <- function(x) { # UNSCALED Hobbs weeds