#' A function rather aimed at developers
#' @noRd
getLPSscore = function(vdat, coefs){
tmp = which(is.na(vdat))
if(length(tmp) > 0){
vdat = vdat[-tmp]
coefs = coefs[-tmp]
}
aScore = mapply(function(x,y){x*y}, x=vdat, y=coefs)
aScore = sum(unlist(aScore))
return(aScore)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.