Re: [R] MiscPsycho - incorrect levenshtein distance?

2010-04-21 Thread Doran, Harold
14, 2010 9:06 AM To: Ben Meijering Cc: r help; Doran, Harold Subject: Re: [R] MiscPsycho - incorrect levenshtein distance? Generally bug reports should go the the package emaintainer. On Apr 14, 2010, at 5:08 AM, Ben Meijering wrote: > For some strings I get a wrong (MiscPsycho) Levenst

Re: [R] MiscPsycho - incorrect levenshtein distance?

2010-04-14 Thread Doran, Harold
help; Doran, Harold Subject: Re: [R] MiscPsycho - incorrect levenshtein distance? Generally bug reports should go the the package emaintainer. On Apr 14, 2010, at 5:08 AM, Ben Meijering wrote: > For some strings I get a wrong (MiscPsycho) Levenstein distance: > I see you spelled it correc

Re: [R] MiscPsycho - incorrect levenshtein distance?

2010-04-14 Thread David Winsemius
Generally bug reports should go the the package emaintainer. On Apr 14, 2010, at 5:08 AM, Ben Meijering wrote: For some strings I get a wrong (MiscPsycho) Levenstein distance: I see you spelled it correctly in your subject line. stringMatch("abc", "ab", normalize="NO") [1] 1 stringMatch(

[R] MiscPsycho - incorrect levenshtein distance?

2010-04-14 Thread Ben Meijering
For some strings I get a wrong (MiscPsycho) Levenstein distance: > stringMatch("abc", "ab", normalize="NO") [1] 1 > stringMatch("abc", "bc", normalize="NO") [1] 2 I think the lines d <- matrix(0, nrow = n + 1, ncol = m + 1) d[, 1] <- 1:(n + 1) d[1, ] <- 1:(m + 1) d[1, 1] <- 0 should be changed