On Wednesday 14 October 2009, Paul Evans wrote: > Hi, > > I just wanted to check whether there is a clustering package available for > ordinal data. My data looks something like: #1 #2 #3 #4..... > A B C D... > D B C A... > D C A A... > where each column represents a sample, and each row some ordinal values. I > would like to cluster such that similar samples appear together. thanks! > >
Hi, See the 'cluster' package. You will need to select a distance metric that can deal with factors. The 'Gower' metric is one that is commonly used. Cheers, Dylan -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341 ______________________________________________ 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.