Nothing
discrep.factor <-
function(datavec, targetvec, weightvec) {
dat <- sapply(names(targetvec), function(x) {
sum(weightvec[datavec == x & !is.na(datavec)])/sum(weightvec[!is.na(datavec)])
})
out <- targetvec - dat
out
}
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.