You must add a check for the NAs:
> a[(a$V1 > 1) & (!is.na(a$V1)),]
V1V2V3 V4 V5
7 100 -2.343761 -132.6063 101.7575 1.187004
On Sat, Apr 5, 2008 at 8:05 PM, Georg Ehret <[EMAIL PROTECTED]> wrote:
> Dear R community,
>I am using a dataframe with lots of NAs and
Dear R community,
I am using a dataframe with lots of NAs and wish to create subsets from
that dataframe. In the example below I intend to create a subset with all
entries with V1>1. To my surprise the result also contains all entries with
V1=NA. I would wish to learn more why this is or what I
2 matches
Mail list logo