From ligges at statistik.tu-dortmund.de  Thu Mar  1 19:52:09 2012
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Thu, 01 Mar 2012 19:52:09 +0100
Subject: [Rd] missing value break my if clause and crash my program
In-Reply-To: <1330519010.98298.YahooMailClassic@web88609.mail.bf1.yahoo.com>
References: <1330519010.98298.YahooMailClassic@web88609.mail.bf1.yahoo.com>
Message-ID: <4F4FC559.6010407@statistik.tu-dortmund.de>



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



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