I'll see if I can speed it up if I get some time. I personally use it on
relatively short strings where the low absolute time means that
the higher relative time your comparisons show are not that
important.
On Sat, Nov 8, 2008 at 5:33 PM, Wacek Kusnierczyk
<[EMAIL PROTECTED]> wrote:
> Gabor Gro
Gabor Grothendieck wrote:
> I suspect strapply is only relatively slow on short strings where
> it doesn't matter anyways since for long strings performance would
> likely be dominated by the underlying regexp operations. I know that
> users are using the package for very long strings since I once
I suspect strapply is only relatively slow on short strings where
it doesn't matter anyways since for long strings performance would
likely be dominated by the underlying regexp operations. I know that
users are using the package for very long strings since I once had
to lift the 25,000 character
Gabor Grothendieck wrote:
> For the problem at hand I think I would use your solution
> which is both easily understood and fastest. On the
> other hand the tapply based solutions are coordinate
> free (i.e. no explicit mucking with indices) and readily
> generalize to more than 2 groups -- just r
For the problem at hand I think I would use your solution
which is both easily understood and fastest. On the
other hand the tapply based solutions are coordinate
free (i.e. no explicit mucking with indices) and readily
generalize to more than 2 groups -- just replace [^pq] with
[^pqr], say.
On S
Wacek Kusnierczyk wrote:
> Gabor Grothendieck wrote:
>
>> Here are a few more solutions. x is the input vector
>> of character strings.
>>
>> The first is a slightly shorter version of one of Wacek's.
>> The next three all create an anonymous grouping variable
>> (using sub, substr/gsub and str
Gabor Grothendieck wrote:
> Here are a few more solutions. x is the input vector
> of character strings.
>
> The first is a slightly shorter version of one of Wacek's.
> The next three all create an anonymous grouping variable
> (using sub, substr/gsub and strapply respectively)
> whose components
Here are a few more solutions. x is the input vector
of character strings.
The first is a slightly shorter version of one of Wacek's.
The next three all create an anonymous grouping variable
(using sub, substr/gsub and strapply respectively)
whose components are "p" and "q" and then tapply
is use
Wacek Kusnierczyk wrote:
>
>>
>>
>>> Rajasekaramya wrote:
>>>
>>>
>>>
hi there
I have a vector with a set of data.I just wanna seperate them based on the
first p and q values metioned within the data.
[1] chr10p15.3 /// chr3q29 /// chr4q35 /// ch
Wacek Kusnierczyk wrote:
> Peter Dalgaard wrote:
>
>> Rajasekaramya wrote:
>>
>>
>>> hi there
>>>
>>> I have a vector with a set of data.I just wanna seperate them based on the
>>> first p and q values metioned within the data.
>>>
>>> [1] chr10p15.3 /// chr3q29 /// chr4q35 /// chr9q34.3
Peter Dalgaard wrote:
> Rajasekaramya wrote:
>
>> hi there
>>
>> I have a vector with a set of data.I just wanna seperate them based on the
>> first p and q values metioned within the data.
>>
>> [1] chr10p15.3 /// chr3q29 /// chr4q35 /// chr9q34.3
>> [2] chr1q22-q24
Rajasekaramya wrote:
> hi there
>
> I have a vector with a set of data.I just wanna seperate them based on the
> first p and q values metioned within the data.
>
> [1] chr10p15.3 /// chr3q29 /// chr4q35 /// chr9q34.3
> [2] chr1q22-q24
> [3] chr1q22-q24
hi there
I have a vector with a set of data.I just wanna seperate them based on the
first p and q values metioned within the data.
[1] chr10p15.3 /// chr3q29 /// chr4q35 /// chr9q34.3
[2] chr1q22-q24
[3] chr1q22-q24
[4] ch
13 matches
Mail list logo