Closed johnaponte closed 10 years ago
for (i in 1:length(param.names)) { assign(param.names[i], coef(object)[i]) } assign(xname, d[, xname])
If a coefficient is named "d", the "d" data.frame is replaced and the code fails.
Good catch, I'll try and fix that some time this week.
Fixed. Switched d to .data in the code for predict2.nls.
for (i in 1:length(param.names)) { assign(param.names[i], coef(object)[i]) } assign(xname, d[, xname])
If a coefficient is named "d", the "d" data.frame is replaced and the code fails.