#' get the plus and minus symbols
#'
#' @param df numeric
#'
#' @return out
#' @export get.sign
#'
#' @examples
#' set.seed(123)
#' v <- rnorm(10)
#' get.sign(v)
#'
#'
get.sign <- function(df){
out <- ifelse(df<0 , "-", "+")
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.