Nothing
myFrac <-
function(num, denom = NULL, format = "markdown"){
if(is.null(denom)){
temp <- strsplit(as.character(num),"/")
num <- lapply(temp,function(x){x[1]})
denom <- lapply(temp,function(x){x[2]})
}
if(format == "markdown"){
paste0("^",num,"^/~",denom,"~")
} else if(format == "latex"){
paste0("$\\frac{",num,"}{",denom,"}$")
} else{
stop("argument `format` must be one of 'markdown' or 'latex'")
}
}
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.