I want to check whether all the components of a vector (or an array)  
are 0, and if they are I will skip the later computations. Of course  
I can create a loop to go through all the components. However is  
there an R function for this purpose more efficient than looping?

Thanks a lot,
Gang

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to