## makeScalarization
makeWeightedSum <- function(data, weights) {
assert_numeric(weights, lower = 0, len = ncol(data), any.missing = FALSE)
tmp <- rowSums(sapply(1:ncol(data), function(x) data[, x] * weights[x]))
inds <- order(tmp)
return(inds)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.