#' ifelse in R
#'
#' @param logic
#' @param yes
#' @param no
#'
#' @return
#' @export
#'
#' @examples
ifelse0 <- function(logic, yes, no) {
if (logic) {
return(yes)
} else {
return(no)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.