[R] Finding distance matrix for categorical data

From: kapil mahant <kapil_mahant_at_yahoo.com>
Date: Thu, 10 Jun 2010 21:42:22 +0530 (IST)


How can we find a distance matrix for categorical data

ie. given a csv below

                   var1         var2    var3    var4
element1-1   yes            x         a         k
element1-2   no             y         b         l
element1-3   maybe       y         c          m

how can i compute the distance matrix between all the elements

Actually i need it to create clusters on top of it

Thanks & Regards

        [[alternative HTML version deleted]]

R-help_at_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. Received on Thu 10 Jun 2010 - 16:14:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Jun 2010 - 07:50:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive