#' This function calculates the mean of one column
myOwnMean = function(vec){
assert(
checkNumeric(vec, lower = 1.3, upper = 2.4),
checkDataFrame(vec, types = "numeric")
)
m = sum(vec)/length(vec)
return(m)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.