Function similar to the function apply(X,dim,sum,na.rm=TRUE).
apply(X,dim,sum,na.rm=TRUE)
Useful links