Skip to content
Prev 27136 / 398500 Next

(no subject)

James,

I think you want to try using index vectors.
index <- c(1:length(x))
negs <- index[x<0]
nonnegs <- index[x>=0]

Then, if you want the negative values, just use
negativevalues <- x[negs]

HTH
steve
Jmshttn at aol.com wrote: