Re: [R] basics on dataframes

2008-04-05 Thread jim holtman
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

[R] basics on dataframes

2008-04-05 Thread Georg Ehret
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