On Fri, Jan 23, 2009 at 08:28, Stefan Th. Gries <stgr...@gmail.com> wrote: > Hans-Joerg Bibiko's function Levenshtein would help; cf. below for an > example (very clumsy with two loops, but you can tweak that with apply > stuff).
Like this maybe (sorry, should've thought about that earlier): [...] x<-rep(all.names, length(all.names)) y<-rep(all.names, each=length(all.names)) sims<-matrix(mapply(levenshtein, x, y), ncol=10) [...] STG ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.