Nothing
#' @importFrom stats as.stepfun
#' @export
stats::as.stepfun
#' @importFrom stats stepfun
#' @export
#'
as.stepfun.picor <- function(x, ...)
{
if (length(x$knots) == 0L) {
stop("cannot convert 'x' to a stepfun object, as least one knot is needed",
call. = FALSE)
}
stats::stepfun(x$knots, x$values, right = TRUE)
}
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.