[R] exact pattern match in grep for column headers

David Winsemius dwinsemius at comcast.net
Thu Oct 21 19:01:01 CEST 2010


On Oct 21, 2010, at 12:17 PM, 1Rnwb wrote:

>
> my question is exactly as described in this post
> http://tolstoy.newcastle.edu.au/R/e2/help/07/02/9812.html

You are citing a 3 year-old message that had multiple contributors.  
Either it wasn't answered by Dalgaard or your question is different.   
May I suggest that you use that message as a template for constructing  
a "proper R-help question", i.e. one that has a cut-and-pastable input  
and specifies the desired output?


> i am doing the pattern search using a vector 'vars[vi]' where i  
> cannot use
> '^vars[vi]$' for a exact pattern match
> -- 
> View this message in context: http://r.789695.n4.nabble.com/grep-tp3004422p3005885.html
> Sent from the R help mailing list archive at Nabble.com.
-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list