摘要: 在http://www.biostatistic.net/thread-3291-1-1.html看到这样的用法library ( cluster )clusplot ( x, pam(x, 2)$clustering )可以画出如下的图形,明天研究一下。 阅读全文
posted @ 2012-07-23 21:24 todoit 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1、前面读取数据库不变##连接数据库,将数据库中的文件读取出来#加载包library(RMySQL) #建立连接conn <- dbConnect(dbDriver("MySQL"), dbname = "eswp", user="root", password="root")#读取 表2008yearnewtext = dbReadTable(conn, "sixclasscleaned")[1:594,2:2]#只读取mesh词的那一列,通过前面的第一个下标修改读取的行数,读取20行2 阅读全文
posted @ 2012-07-23 18:58 todoit 阅读(984) 评论(2) 推荐(0) 编辑