Nothing
robustNlsPredict <- function(model, newdata){
## A wrapper function for predict.nls() that checks whether model actually
## converged before starting the prediction.
if (class(model)!="try-error" && !is.null(model)){
if (is.null(newdata)){
prediction <- predict(model)
} else {
prediction <- predict(model, newdata=newdata)
}
} else {
prediction <- rep(NA_real_, times=length(newdata[[1]]))
}
return(prediction)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.