> test[i] <- all(df[,i] < 0) which is to say, you want to check which columns have ALL negative values, right? you could do something like this: rep(1,nrow(df))%*%ifelse(df<0,1,0) == nrow(df) hope this helps. - peter ************************************************************ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [no subject], Unknown |
|---|---|
| Next by Date: | [no subject], Unknown |
| Previous by Thread: | [no subject], Unknown |
| Next by Thread: | [no subject], Unknown |
| Indexes: | [Date] [Thread] [Top] [All Lists] |