Dear all,

I have a task to find the first all zero row of a matrix X ( nothing known
about X). I need to write a function which returns either the row index of
the first all-zero row, or NA if there are no all-zero rows. and I also need
to locate all rows which are non-zero (should be a vector of row indexes).

Can somebody give me some hints on this?

Thanks a lot.

Rene.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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