[R] Clustering for Ordinal data

Dylan Beaudette debeaudette at ucdavis.edu
Thu Oct 15 18:22:34 CEST 2009


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




More information about the R-help mailing list