r - Using hierarchical clustering with an single linkage in R
问题描述
I am supposed to use Hierarchial clustering with a single linkage in R with the data frame hotels.std
my code:
dist_mat = dist(features, method = "euclidean")
hc_single = hclust(dist_mat, method = "single", members = as.factor(hotels$Hotel_Address))```
my error:
Error in hclust(dist_mat, method = "single", members = as.factor(hotels$Hotel_Address)) : invalid length of members
解决方案
推荐阅读
- c# - 显示返回结果(对象)的视图 Prism
- amazon-web-services - AWS 企业账户 - IAM 设置
- outlook - 在 .msg 文件中更改 SenderName
- flutter - 在颤动中按下后如何立即更改图标颜色?
- javascript - ruby on rails 中的 jquery.raty 星号
- amazon-ec2 - 缺少具有多个 EC2 实例的 Drupal 7 + AWS aws 负载均衡器 + 临时文件夹文件
- javascript - 得到错误 .split("").reverse() 不是函数
- sequelize.js - Sequelizejs:未处理的拒绝 SequelizeDatabaseError:列 user.playerstatsId 不存在
- python - 查看以 Django 中其他列为条件的新列
- javascript - 如何知道两个透明图像是否在非透明区域相交