Re: [R] R in MAC add many extra <´s

2011-06-17 Thread matto in cor
If the problem is that in the history R adds a new newline avery time, you should go to Options and activate "clear input lines" (or something similar). marco t. On Thu, Jun 16, 2011 at 7:38 PM, Jonathan Daily wrote: > Do you mean prompts (the > that indicates R is waiting for input)? > Your iss

Re: [R] Negating two identical characters with regular expressions

2011-06-06 Thread matto in cor
Hello Michael, try strsplit("aa-bb-cc dd", "-{2,}") . This function returns an array with all the strings separated by multiple dashes (at least two). Alternatively if you want the first string only try this: sub("(.*?)--.*", "\\1", "aa-bbcc dd") (note the reluctant quantifier *? ) Hope t