全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1358 2
2015-08-11
今天在查找用R语言做变量聚类的时候,出现了一句错误的程序:centers.hclust(na.omit(df),chcluster,3)#聚类中心,想请问一下,究竟有没有这个centers.hclust函数,有的话,要怎么调用或按什么包才能运行正确,如果没有这个函数的话,怎么求出系统聚类的聚类中心,请解答!!!![loveliness]
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-8-11 17:37:26
centers.hclust {rattle}
List Cluster Centers for a Hierarchical Cluster
Package:
rattle
Version:
3.0.2
Description

Generate a matrix of centers from a hierarchical cluster.
Usage

centers.hclust(x, h, nclust=10, use.median=FALSE)

Arguments

x
    The data used to build the cluster.
h
    A hclust object.
nclust
    Number of clusters.
use.median
    Use meadion instead of mean.

Details

For the specified number of clusters, cut the hierarchical cluster appropriately to that number of clusters, and return the mean (or median) of each resulting cluster.
References

Package home page: http://rattle.togaware.com
Author(s)

Daniele Medri and Graham.Williams@togaware.com

Documentation reproduced from package rattle, version 3.0.2. License: GPL (>= 2)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-8-12 09:47:39
谢谢!我试一下
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群