#' @export
dy <- function(x) UseMethod("dy")
#' @export
dy.smooth.spline <- function(x) {
dy <- stats::predict(x, deriv = 1)
dy$y
}
#' @export
dy.nls <- function(x) {
stats::predict(x, deriv = 1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.