965-R-Learning-Repo/test/t-code/2720048/R1007.R
2024-11-20 17:04:40 +08:00

7 lines
470 B
R
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

iris=______("iris.csv") #读取iris.csv文件 (2分)
iris=_______(iris) #填写合适的函数名,删除缺失值 (2分)
iris=scale(iris)
d=______(iris) #填写合适的函数名,计算距离矩阵 (2分)
hc=_________(d,method="ave") #填写合适的函数名,采用平均距离对数据进行层次聚类 (2分)
cutree(hc,k=2) #将数据分成2类
cat("根据分类结果第6个和66个样本是否被分在同一类","______") #填 是/否 (2分)