Nothing
#' modp
#'
#' A function which rrturns either the input value (if positive) or zero (if
#' negative)
#'
#' @param x a numberic vector
#' @return a numeric vector with negative values replaced with 0
#' @details A fucntion which returns a version of x with negative values replacd with 0
modp <- function(x){
x*(sign(x)+1)/2
}
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.