zisheng xing
2012-Feb-29 12:36 UTC
[Rd] missing value break my if clause and crash my program
I have a program which is designed to read through a dbf file and carry out certain amount of further calculation if one condition obtained from the newly read line. The condition to determine if the calculation can be done is a if-clasue (i.e. if(m>0). Unfortunately, when m is missing, the program crashed. Just wonder who can help me out. Thanks [[alternative HTML version deleted]]
Uwe Ligges
2012-Mar-01 18:52 UTC
[Rd] missing value break my if clause and crash my program
On 29.02.2012 13:36, zisheng xing wrote:> I have a program which is designed to read through a dbf file and carry out certain amount of further calculation if one condition obtained from the newly read line. The condition to determine if the calculation can be done is a if-clasue (i.e. if(m>0). Unfortunately, when m is missing, the program crashed. Just wonder who can help me out.1. Please ask questions on R-help after reading its posting guide. R-devel is for development purposes. 2. Your code results in an ERROR rather than a crash. 3. Check if m exists before you compare it to some value. Uwe Ligges> > Thanks > [[alternative HTML version deleted]] > > > > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel