R !!!対応分析 {{outline}} ---- !パッケージ install.packages("ca", dependencies=T) library(ca) !サンプルデータ *NICER のファイル5つ {{pre > setwd("NICERsample/") > list.files() [1] "JPN501.txt" "JPN502.txt" "JPN503.txt" "JPN504.txt" "JPN505.txt" "JPN506.txt" "JPN507.txt" "JPN508.txt" "JPN509.txt" [10] "JPN510.txt" > myIndices4() Read 123 items Read 120 items Read 70 items Read 114 items Read 106 items Read 93 items Read 111 items Read 93 items Read 91 items Read 72 items > nicerSampleIndices <- read.table(choose.files()) > nicerSampleIndices V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 1 JPN501.txt 4 319 135 30 0.4231975 7.558549 0.5921317 4.304075 10.63333 2 JPN502.txt 4 356 161 29 0.4522472 8.532983 0.6649157 4.233146 12.27586 3 JPN503.txt 3 201 121 13 0.6019900 8.534682 0.7170149 4.746269 15.46154 4 JPN504.txt 4 260 140 27 0.5384615 8.682431 0.6877692 4.761538 9.62963 5 JPN505.txt 4 420 175 25 0.4166667 8.539126 0.6341905 3.995238 16.80000 6 JPN506.txt 3 261 124 20 0.4750958 7.675407 0.6390038 4.072797 13.05000 7 JPN507.txt 4 362 151 26 0.4171271 7.936384 0.6485083 4.292818 13.92308 8 JPN508.txt 3 198 98 20 0.4949495 6.964557 0.6174747 4.545455 9.90000 9 JPN509.txt 4 263 104 19 0.3954373 6.412915 0.5726616 4.034221 13.84211 10 JPN510.txt 3 183 99 14 0.5409836 7.318291 0.6577049 4.387978 13.07143 > names(nicerSampleIndices) <- c("file", "Score", "Token", "Type", "NoS", "TTR", "GI", "MATTR", "AWL", "ASL") > nicerSampleIndices file Score Token Type NoS TTR GI MATTR AWL ASL 1 JPN501.txt 4 319 135 30 0.4231975 7.558549 0.5921317 4.304075 10.63333 2 JPN502.txt 4 356 161 29 0.4522472 8.532983 0.6649157 4.233146 12.27586 3 JPN503.txt 3 201 121 13 0.6019900 8.534682 0.7170149 4.746269 15.46154 4 JPN504.txt 4 260 140 27 0.5384615 8.682431 0.6877692 4.761538 9.62963 5 JPN505.txt 4 420 175 25 0.4166667 8.539126 0.6341905 3.995238 16.80000 6 JPN506.txt 3 261 124 20 0.4750958 7.675407 0.6390038 4.072797 13.05000 7 JPN507.txt 4 362 151 26 0.4171271 7.936384 0.6485083 4.292818 13.92308 8 JPN508.txt 3 198 98 20 0.4949495 6.964557 0.6174747 4.545455 9.90000 9 JPN509.txt 4 263 104 19 0.3954373 6.412915 0.5726616 4.034221 13.84211 10 JPN510.txt 3 183 99 14 0.5409836 7.318291 0.6577049 4.387978 13.07143 }}