# f1prime <-
# function(xprime, mprime, eprime = 1) {
# xprime[abs(xprime - apply(cbind(xprime, mprime), 1,
# function(x){median(x[x > 0])})) > eprime] <- NA
# return(xprime);
# }
f1prime <-
function(xprime, mprime, eprime = 1) {
xprime[abs(xprime - apply(mprime, 1,
function(x){median(x[x > 0])})) > eprime] <- NA
return(xprime);
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.