On Tue, Oct 29, 2013 at 1:13 PM, Lopez, Dan <[email protected]> wrote:
> grep("^([a-z]+) +\1 +[a-z]+ [0-9]",lines)
Your expression has a typo:
R> grep("^([a-z]+) +\\1 +[a-z]+ [0-9]",lines)
[1] 2
--
Sarah Goslee
http://www.functionaldiversity.org
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.