##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (a, b, cond = rep(TRUE, NROW(a))){
cond[is.na(a)] <- FALSE
cond[is.na(b)] <- FALSE
a <- a[cond]
b <- b[cond]
return(sum(a-b)/NROW(a))
}
Run the code above in your browser using DataLab