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

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Thu, 01 Mar 2012 19:52:09 +0100

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 01 Mar 2012 - 19:01:21 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 01 Mar 2012 - 19:10:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive