Re: [R] if condition doesn't evaluate to True/False

2009-04-30 Thread Petr PIKAL
; -Original Message- > > From: r-help-boun...@r-project.org > > [mailto:r-help-boun...@r-project.org] On Behalf Of Petr PIKAL > > Sent: Wednesday, April 29, 2009 8:21 AM > > To: ml-r-h...@epigenomics.com > > Cc: r-h...@stat.math.ethz.ch; Moumita Das > > Su

Re: [R] if condition doesn't evaluate to True/False

2009-04-29 Thread ml-r-help
Petr PIKAL wrote: > Hi > > r-help-boun...@r-project.org napsal dne 29.04.2009 17:05:01: > >> see >> ?is.null >> >> e.g. >> if( is.null(sub_grp_whr_cls_data[sbgrp_no, 1]) ) >> { >> your code >> } > > It probably will not work as > > sub_grp_whr_cls_data[sbgrp_no,1]=="NULL" > > implicates tha

Re: [R] if condition doesn't evaluate to True/False

2009-04-29 Thread Bert Gunter
mics.com > Cc: r-h...@stat.math.ethz.ch; Moumita Das > Subject: Re: [R] if condition doesn't evaluate to True/False > > Hi > > r-help-boun...@r-project.org napsal dne 29.04.2009 17:05:01: > > > see > > ?is.null > > > > e.g. > > if( is.null(sub_grp_whr_

Re: [R] if condition doesn't evaluate to True/False

2009-04-29 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 29.04.2009 17:05:01: > see > ?is.null > > e.g. > if( is.null(sub_grp_whr_cls_data[sbgrp_no, 1]) ) > { > your code > } It probably will not work as sub_grp_whr_cls_data[sbgrp_no,1]=="NULL" implicates that there is character value "NULL". I am not s

Re: [R] if condition doesn't evaluate to True/False

2009-04-29 Thread ml-r-help
see ?is.null e.g. if( is.null(sub_grp_whr_cls_data[sbgrp_no, 1]) ) { your code } Moumita Das wrote: > Hi friends, > Please help me with this bug. > > *Bug in my code:* > > In this variable sub_grp_whr_cls_data[sbgrp_no,1] I store the where > clause.every sub group has a where condition linked

[R] if condition doesn't evaluate to True/False

2009-04-29 Thread Moumita Das
Hi friends, Please help me with this bug. *Bug in my code:* In this variable sub_grp_whr_cls_data[sbgrp_no,1] I store the where clause.every sub group has a where condition linked with it. Database1 Where clause was not found for a particular subgroup, sub_grp_whr_cls_data[sbgrp_no,1] value