Skip to content

Splitting the string at the last sub-string

1 message · Tuszynski, Jaroslaw W.

#
Thanks for suggestions. I suspect the "regexpr" version will be better than
my version, since I use it to find an string towards the end of a large (up
to ~30Mb) test/XML file.

Thanks again.

Jarek
====================================================\==== 
 Jarek Tuszynski, PhD.                           o / \ 
 Science Applications International Corporation  <\__,|  
 (703) 676-4192                                   ">  \ 
 Jaroslaw.W.Tuszynski at saic.com                     `   \ 

 

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Prof Brian Ripley
Sent: Thursday, September 15, 2005 10:43 AM
To: Barry Rowlingson
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] Splitting the string at the last sub-string
On Thu, 15 Sep 2005, Barry Rowlingson wrote:

            
Yes, or anything larger:  I actually tested 10000.
But that's not the way to do this repeatedly for the same pattern. (It is
normally compiling regexps that is slow, and regexpr is vectorized.) Not
that I would call 300us `slow'.