>  strsplit(")asdasdsin(abcd)", "sin\\(")
[[1]]
[1] ")asdasd" "abcd)"

>


On Thu, Nov 8, 2012 at 12:39 PM, Bharat Warule <bwar...@gmail.com> wrote:

> Hi all,
>
> > diff_operator <- "\\("
> > strsplit(cond, diff_operator)
> [[1]]
> [1] "andsin"         "log_angle_1_4)"
>
> > diff_operator <- "\\sin("
> > strsplit(cond, diff_operator)
> Error in strsplit(cond, diff_operator) :
>   invalid regular expression '\sin(', reason 'Missing ')''
>
> When I am going to split with "(" it’s working fine but when i want use
> "sin(" this is not working.
> I understand that, I am missing something can anybody please point me.
> Thanks for your help.
>
> Thanks,
> Bharat
>
>
>
> -----
> Bharat Warule
> Pune
> --
> View this message in context:
> http://r.789695.n4.nabble.com/strsplit-with-invalid-regular-expression-tp4648857.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org 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.
>



-- 
Ulrich Staudinger, Managing Director and Sr. Software Engineer, ActiveQuant
GmbH

P: +41 79 702 05 95
E: ustaudin...@activequant.com

http://www.activequant.com
Connect online:
https://www.xing.com/profile/Ulrich_Staudinger<https://www.xing.com/profile/Ulrich_Staudinger>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to