search for: negindex

Displaying 1 result from an estimated 1 matches for "negindex".

Did you mean: vegindex
2007 Apr 25
1
regular expressions with grep() and negative indexing
Dear R-helpers, Does anyone know how to use regular expressions to return vector elements that don't contain a word? For instance, if I have a vector x <- c("seal.0","seal.1-exclude") I'd like to get back the elements which do not contain the word "exclude", using something like (I know this doesn't work) but: grep("[^(exclude)]",x) I