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
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
2 matches
Mail list logo