Re: クラスター分析(語・コード)の結果の出力 (HIGUCHI Koichi) KH Coder 旧掲示板
[ツリー表示] [留意事項] [ワード検索] [過去ログ]

  [No.982] Re: クラスター分析(語・コード)の結果の出力 投稿者:HIGUCHI Koichi  投稿日:2012/06/11(Mon) 23:59:28

こんにちは、樋口です。書き込みありがとうございます。

クラスター分析の結果を「R Source」形式で保存し、R上で実行した
あと、以下のコードを実行してください。

そして「freq」「words1」「words2」のうち、必要なものを
write.tableコマンド等で、ファイルに書き出していただくと良いか
と思います。


freq <- as.data.frame( table(memb, dnn="cluster") )

words1 <- data.frame(
cluster = I(memb),
label = I(labels)
)

words2 <- NULL
for (i in unique(memb) ){
current <- NULL
for (h in subset(words1, words1$cluster==i)$label ){
current <- paste(current,h)
}
substr(current,0,1) <- ''
words2 <- rbind(
words2,
cbind(
i,
current
)
)
}
colnames(words2) <- c("cluster","words")
words2 <- as.data.frame(words2)


- 関連一覧ツリー (■ をクリックするとツリー全体を一括表示します)