【问题标题】:Dendrograms in R of data that is already categorized in R已经在 R 中分类的数据的 R 中的树状图
【发布时间】:2017-03-11 19:26:16
【问题描述】:

我已经有如下分类的文本数据:

main_category   sub_category_level1 sub_category_level2
plants  fruit   apples
plants  fruit   oranges
plants  fruit   
plants  veggies carrots
plants  veggies 
plants  veggies onions

网上看的大部分教程都是计算一个距离矩阵,然后用hclust函数对数据进行聚类,但是我的数据已经特征化了,是纯文本数据。

我也不确定如何处理缺失值。

【问题讨论】:

  • 没关系,我只是要在 R 中使用 igraph。
  • 如果你不喜欢你提出的问题,你应该删除它。

标签: r text cluster-analysis dendrogram


【解决方案1】:

根据定义,树状图需要一个高度,即相似度值。

您正在寻找的是一棵。根在主类别分裂,分支然后在子类别,等等。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-07
    • 2013-03-01
    • 2014-02-20
    • 2015-12-15
    • 1970-01-01
    • 2011-01-14
    • 1970-01-01
    • 2011-10-06
    相关资源
    最近更新 更多