#' Piecewise Function
#'
#' @param x
#' @param coef
#'
#' @return piecewise regression
#' @export
#'
#' @examples
piecefunc <- function(x,coef){
coef[1]+coef[2]*(x)+coef[3]*(x-18)*(x-18>0)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.