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

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Mar 1 19:52:09 CET 2012



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



More information about the R-devel mailing list