why 3 parameters on the 'grepl'? Did you mean to say:
grepl("\\W", "س") # FALSE
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.
On Tue, Feb 9, 2016 at 11:55 AM, Ista Zahn wrote:
> I
I just spent a day and a half debugging someone's code, only to
discover that the problem is platform dependent regular expressions.
For example:
## Windows:
grepl("\\W", "", "س") # TRUE
## OS X:
grepl("\\W", "", "س") # TRUE
## Linux:
grepl("\\W", "", "س") # FALSE
Ouch. The documentation
Hi Jim,
Bah, yes, I meant,
## Windows:
grepl("\\W", "س") # TRUE
## OS X:
grepl("\\W", "س") # TRUE
## Linux:
grepl("\\W", "س") # FALSE
Sorry about that. My original example was with gsub, but I thought
changing to grepl example was clearer. Thank you.
-- Ista
On Tue, Feb 9, 2016 at
3 matches
Mail list logo