Skip to content

wrong with using subset

3 messages · Ahmet Temiz, Don MacQueen, Duncan Murdoch

#
hello 

is it wrong with this expression:

subset(dfpr2_r,(as.numeric(as.character(dfpr2_r$pr2))) > 0.2 && (dfpr2_r$landa
it gives nothing

regards
--
Open WebMail Project (http://openwebmail.org)
#
I would suggest that first you look at the results of

   (as.numeric(as.character(dfpr2_r$pr2))) > 0.2 && (dfpr2_r$landa > 10)

by itself. Does it give all FALSE ?

Then look at each of the parts separately. What are the results of

    (as.numeric(as.character(dfpr2_r$pr2))) > 0.2
and
    dfpr2_r$landa > 10

Are there any TRUE among the results?

Does
    as.numeric(as.character(dfpr2_r$pr2))
give what you expect?

-Don
At 5:20 PM +0200 1/13/10, Ahmet Temiz wrote:

  
    
#
On 13/01/2010 10:45 AM, Don MacQueen wrote:
I'd guess the problem is using && instead of &. 

Duncan Murdoch