Re: [R] Levenshtein-Distance

2011-10-20 Thread David Winsemius
On Oct 20, 2011, at 7:53 AM, Jörg Reuter wrote: Yes, I see many package. But the Problem is, the Package compare strings. But there is a diffrent between the caracter 1 and 2 and the number "12". All package I see compare every letter, but a number have many digits but the digits make only

Re: [R] Levenshtein-Distance

2011-10-20 Thread R. Michael Weylandt
Have you considered simply changing your numbers into strings with as.character()? E.g., library(vwr) levenshtein.distance("aba","cda") num1 <- 121; num2 <- 341 levenshtein.distance(as.character(num1),as.character(num2)) I find that last line a little verbose to type, so I'd write a little hel

Re: [R] Levenshtein-Distance

2011-10-20 Thread Jörg Reuter
Yes, I see many package. But the Problem is, the Package compare strings. But there is a diffrent between the caracter 1 and 2 and the number "12". All package I see compare every letter, but a number have many digits but the digits make only sense if the function see them together. I tough to chan

Re: [R] Levenshtein-Distance

2011-10-20 Thread Mark Difford
On Oct 20, 2011; 10:07am Jörg Reuter wrote: > I want compare a Matrix row by row and at the end I want to a Matrix with > the Levenshtein-Distance. Jörg, To begin with, try the following at the command prompt: ## RSiteSearch("Levenshtein") Shows, amongst other hits, that package vwr has a fu

Re: [R] Levenshtein-Distance

2011-10-20 Thread Jörg Reuter
My big problem is not ward, it is to calculate the Levenshtein-Distance. > check the help archives. > >  hclust  with method=ward  might be what you are looking for > > > > On Wed, Oct 19, 2011 at 2:43 PM, Jörg Reuter wrote: >> I am very new to R, so sorry that I ask stupid things. >> I want comp

Re: [R] Levenshtein-Distance

2011-10-20 Thread steven mosher
check the help archives. hclust with method=ward might be what you are looking for On Wed, Oct 19, 2011 at 2:43 PM, Jörg Reuter wrote: > I am very new to R, so sorry that I ask stupid things. > I want compare a Matrix row by row and at the end I want to a Matrix with > the Levenshtein-Dista

[R] Levenshtein-Distance

2011-10-19 Thread Jörg Reuter
I am very new to R, so sorry that I ask stupid things. I want compare a Matrix row by row and at the end I want to a Matrix with the Levenshtein-Distance. Example: The Data (Learningpath in a E-Learning-System): 5 12 24 35 1 24 35 3 35 35 45 35 Now I need a comand, which compare the first line wit