Re: [R] subset with NA

2003-02-19 Thread Roger Peng
If `temp' is your data frame and `tuna' is a variable in `temp', then try subset(temp, is.na(tuna)) -roger ___ UCLA Department of Statistics [EMAIL PROTECTED] http://www.stat.ucla.edu/~rpeng On Wed, 19 Feb 2003, Robert Schick wrote: > Easy question that I can't find

Re: [R] subset with NA

2003-02-19 Thread white . denis
> Easy question that I can't find an answer for. I'm trying to subset a > data frame and want to exclude the positive values, i.e. I want the NA > values. > > My data: > > summary(temp$tuna) >Min. 1st Qu. MedianMean 3rd Qu.Max.NA's > 1 2 3 3 4 5

[R] subset with NA

2003-02-19 Thread Robert Schick
Easy question that I can't find an answer for. I'm trying to subset a data frame and want to exclude the positive values, i.e. I want the NA values. My data: > summary(temp$tuna) Min. 1st Qu. MedianMean 3rd Qu.Max.NA's 1 2 3 3 4 51211 Que