#' Python like string concatenation
#'
#' This is a function that allow you to do string concation the python way.
#' It behave juste like the paste0 function.
#'
#' @param e1 Character vector
#' @param e2 Character vector
#'
#' @return Character vector
#' @export
`+` <- function(e1, e2){
if (is.character(e1) | is.character(e2)){
paste0(e1,e2)
} else {
base::`+`(e1,e2)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.