normalize_priors <- function(x,
fn = function(x){x/sum(x,na.rm = TRUE)},
verbose=TRUE){
if(verbose){
messager("Normalizing priors with the function:")
print(fn)
}
fn(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.