楼主: 东篱暗香
12264 11

[统计软件] R语言聚类分析怎么处理非数值型 [推广有奖]

11
念小年 发表于 2016-8-20 21:10:09
δΨξτ毅力 发表于 2014-5-5 10:05
有没有关于r语言聚类分析的例子,我想学习
https://cran.r-project.org/web/packages/cluster/cluster.pdf


example: animals
Attributes of Animals
Description
This data set considers 6 binary attributes for 20 animals.
Usage
data(animals)
Format
A data frame with 20 observations on 6 variables:
[ , 1] war warm-blooded
[ , 2] fly can fly
[ , 3] ver vertebrate
[ , 4] end endangered
[ , 5] gro live in groups
[ , 6] hai have hair
All variables are encoded as 1 = ‘no’, 2 = ‘yes’.
Details
This dataset is useful for illustrating monothetic (only a single variable is used for each split) hierarchical
clustering.
  1. data(animals)
  2. apply(animals,2, table) # simple overview
  3. ma <- mona(animals)
  4. ma
  5. ## Plot similar to Figure 10 in Struyf et al (1996)
  6. plot(ma)
复制代码

12
δΨξτ毅力 发表于 2016-8-25 14:46:20
谢谢

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2025-12-27 08:15