Re: [Rd] missing value break my if clause and crash my program

2012-03-01 Thread Uwe Ligges



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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] missing value break my if clause and crash my program

2012-02-29 Thread zisheng xing
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]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel