# NOT RUN {
## The function is currently defined as
##function (X, dim)
##{
## .Call("imp4p_fast_apply_nb_na", PACKAGE = "imp4p", X, dim)
## }
##
## You can compare the execution time with a traditional apply function by
## library(rbenchmark)
## res.sim=sim.data(nb.pept=2000,nb.miss=600);
## benchmark(fast_apply_nb_na(res.sim$dat.obs, 1),
## apply(res.sim$dat.obs,1,function(x)sum(is.na(x))))
##
##
##
# }
Run the code above in your browser using DataLab