[R] string edit distance

2007-04-10 Thread David Meyer
It's in package cba (sdists()). David -- I have a column of words, for example DOG DOOG GOD GOOD DOOR ... and I am interested in creating a matrix that contains the string edit distances between each pair of words. I am this close - ' ' - to writing the algorithm myself

[R] string edit distance

2007-04-07 Thread Thomas Hills
I have a column of words, for example DOG DOOG GOD GOOD DOOR ... and I am interested in creating a matrix that contains the string edit distances between each pair of words. I am this close - ' ' - to writing the algorithm myself (which will allow for different variations on the

Re: [R] string edit distance

2007-04-07 Thread Prof Brian Ripley
Does the code underlying agrep() do what you want? On Sat, 7 Apr 2007, Thomas Hills wrote: I have a column of words, for example DOG DOOG GOD GOOD DOOR ... and I am interested in creating a matrix that contains the string edit distances between each pair of words. I am this close -

Re: [R] string edit distance

2007-04-07 Thread Tobias Verbeke
Thomas Hills wrote: I have a column of words, for example DOG DOOG GOD GOOD DOOR ... and I am interested in creating a matrix that contains the string edit distances between each pair of words. I am this close - ' ' - to writing the algorithm myself (which will allow for