On Sat, 15 Nov 2003, Henrik Bengtsson wrote:

> You have to escape (="\\") such "special" characters, e.g.
>
>  strsplit("abc(d)(e)", split="\\(")
>
> or put them in brackets (matches sets of characters)
>
>  strsplit("abc(d)(e)", split="[(]")
>
> if you think that is more readable. Similar for gsub(), grep(),
> regexpr() and friends.
>

For all except (unfortunately) strsplit() there is now a fixed=TRUE
argument to make this unnecessary.

        -thomas

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to