Re: [R] wrong with using subset

2010-01-13 Thread Duncan Murdoch
On 13/01/2010 10:45 AM, Don MacQueen wrote: 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 ? I'd guess the problem is using && instead of &. Duncan Murdoch Then look at eac

Re: [R] wrong with using subset

2010-01-13 Thread Don MacQueen
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$l