On Tue, Aug 24, 2010 at 11:25 AM, Martin Morgan wrote:
> On 08/24/2010 07:27 AM, Doran, Harold wrote:
>> There is the stringMatch function in the MiscPsycho package.
>>
>>> stringMatch('Hadley', 'Hadley Wickham', normalize = 'no')
>> [1] 8
>>> stringMatch('Hadley', 'Hadley Wickham', normalize = 'y
ick
score: 29.5102
> aln <- pairwiseAlignment("Hadley Hamwick", "Haderley Hamwich")
> consensusMatrix(aln)["-",]
[1] 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0
Martin
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun..
un...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Hadley Wickham
Sent: Tuesday, August 24, 2010 10:17 AM
To: R-help
Subject: [R] Comparing/diffing strings
Hi all,
all.equal is generally very useful when you want to find the
differences between two objects. It breaks dow
On 24-Aug-10 14:16:55, Hadley Wickham wrote:
> Hi all,
> all.equal is generally very useful when you want to find the
> differences between two objects. It breaks down however,
> when you have two long strings to compare:
>
>> all.equal(a, b)
> [1] "1 string mismatch"
>
> Does any one know of an
Hi all,
all.equal is generally very useful when you want to find the
differences between two objects. It breaks down however, when you
have two long strings to compare:
> all.equal(a, b)
[1] "1 string mismatch"
Does any one know of any good text diffing tools implemented in R?
Thanks,
Hadley
5 matches
Mail list logo