Re: [R] Bug in my code (finding nonzero min)

2012-07-23 Thread S Ellison
ct.org] On Behalf Of wwreith > Sent: 23 July 2012 05:35 > To: r-help@r-project.org > Subject: [R] Bug in my code (finding nonzero min) > > Can someone verify for me if the for loop below is really > calculating the nonzero min for each row of a matrix? I have > a bug some

Re: [R] Bug in my code (finding nonzero min)

2012-07-22 Thread Bert Gunter
!!! Well, that strikes me as a fair bit of chutzpah. Some generous soul may well respond, but why not do your own debugging using R's debugging tools.It will serve you well in the long run to put in the effort now to learn them. Debugging is a major part of any programming. ?trace ?debug ?browser

[R] Bug in my code (finding nonzero min)

2012-07-22 Thread wwreith
Can someone verify for me if the for loop below is really calculating the nonzero min for each row of a matrix? I have a bug somewhere in the is section of code. My first guess is how I am find the the nonzero min of each row of my matrix. The overall idea is to make sure I am investing all of my m