R/f1prime.R

Defines functions f1prime

# 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);
}

Try the TTMap package in your browser

Any scripts or data that you put into this service are public.

TTMap documentation built on Nov. 8, 2020, 7:30 p.m.