R version 3.4.2 (2017-09-28) -- "Short Summer" Copyright (C) 2017 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > wd() Error in wd() : could not find function "wd" > ?setwd starting httpd help server ... done > getwd() [1] "C:/Users/tarmo.veskioja/Downloads/turniirid" > library(foreign) > > > > > turniir_737734 <- as.matrix(read.csv('turniir_737734_8sept2010.csv', header = FALSE, sep = ",")) > turniir_737734 V1 V2 V3 V4 V5 V6 [1,] 0 0 0 1 1 0 [2,] 0 0 1 0 1 0 [3,] 0 0 0 1 0 1 [4,] 0 0 0 0 0 1 [5,] 0 0 0 1 0 1 [6,] 1 1 0 0 0 0 > turniir <- turniir_737734 > turniir V1 V2 V3 V4 V5 V6 [1,] 0 0 0 1 1 0 [2,] 0 0 1 0 1 0 [3,] 0 0 0 1 0 1 [4,] 0 0 0 0 0 1 [5,] 0 0 0 1 0 1 [6,] 1 1 0 0 0 0 > turniir = turniir_737734 > turniir V1 V2 V3 V4 V5 V6 [1,] 0 0 0 1 1 0 [2,] 0 0 1 0 1 0 [3,] 0 0 0 1 0 1 [4,] 0 0 0 0 0 1 [5,] 0 0 0 1 0 1 [6,] 1 1 0 0 0 0 > utils:::menuInstallPkgs() --- Please select a CRAN mirror for use in this session --- also installing the dependencies ‘ps’, ‘rematch’, ‘withr’, ‘processx’, ‘forcats’, ‘hms’, ‘readr’, ‘cellranger’, ‘zip’, ‘yaml’, ‘evaluate’, ‘highr’, ‘markdown’, ‘httpuv’, ‘mime’, ‘sourcetools’, ‘later’, ‘promises’, ‘crayon’, ‘miniUI’, ‘base64enc’, ‘webshot’, ‘SparseM’, ‘MatrixModels’, ‘sp’, ‘haven’, ‘curl’, ‘data.table’, ‘readxl’, ‘openxlsx’, ‘minqa’, ‘nloptr’, ‘RcppEigen’, ‘htmlwidgets’, ‘htmltools’, ‘knitr’, ‘jsonlite’, ‘shiny’, ‘crosstalk’, ‘manipulateWidget’, ‘carData’, ‘abind’, ‘pbkrtest’, ‘quantreg’, ‘maptools’, ‘rio’, ‘lme4’, ‘xtable’, ‘rgl’, ‘car’ trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/ps_1.1.0.zip' Content type 'application/zip' length 241249 bytes (235 KB) downloaded 235 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/rematch_1.0.1.zip' Content type 'application/zip' length 14615 bytes (14 KB) downloaded 14 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/withr_2.1.2.zip' Content type 'application/zip' length 123831 bytes (120 KB) downloaded 120 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/processx_3.2.0.zip' Content type 'application/zip' length 242514 bytes (236 KB) downloaded 236 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/forcats_0.3.0.zip' Content type 'application/zip' length 192815 bytes (188 KB) downloaded 188 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/hms_0.4.2.zip' Content type 'application/zip' length 33627 bytes (32 KB) downloaded 32 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/readr_1.1.1.zip' Content type 'application/zip' length 1256771 bytes (1.2 MB) downloaded 1.2 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/cellranger_1.1.0.zip' Content type 'application/zip' length 75392 bytes (73 KB) downloaded 73 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/zip_1.0.0.zip' Content type 'application/zip' length 103220 bytes (100 KB) downloaded 100 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/yaml_2.2.0.zip' Content type 'application/zip' length 200422 bytes (195 KB) downloaded 195 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/evaluate_0.11.zip' Content type 'application/zip' length 48826 bytes (47 KB) downloaded 47 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/highr_0.7.zip' Content type 'application/zip' length 36785 bytes (35 KB) downloaded 35 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/markdown_0.8.zip' Content type 'application/zip' length 169098 bytes (165 KB) downloaded 165 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/httpuv_1.4.5.zip' Content type 'application/zip' length 1129196 bytes (1.1 MB) downloaded 1.1 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/mime_0.5.zip' Content type 'application/zip' length 38061 bytes (37 KB) downloaded 37 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/sourcetools_0.1.7.zip' Content type 'application/zip' length 528194 bytes (515 KB) downloaded 515 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/later_0.7.4.zip' Content type 'application/zip' length 605477 bytes (591 KB) downloaded 591 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/promises_1.0.1.zip' Content type 'application/zip' length 647255 bytes (632 KB) downloaded 632 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/crayon_1.3.4.zip' Content type 'application/zip' length 710820 bytes (694 KB) downloaded 694 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/miniUI_0.1.1.1.zip' Content type 'application/zip' length 29023 bytes (28 KB) downloaded 28 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/base64enc_0.1-3.zip' Content type 'application/zip' length 39413 bytes (38 KB) downloaded 38 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/webshot_0.5.0.zip' Content type 'application/zip' length 1353562 bytes (1.3 MB) downloaded 1.3 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/SparseM_1.77.zip' Content type 'application/zip' length 968526 bytes (945 KB) downloaded 945 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/MatrixModels_0.4-1.zip' Content type 'application/zip' length 202871 bytes (198 KB) downloaded 198 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/sp_1.3-1.zip' Content type 'application/zip' length 1538903 bytes (1.5 MB) downloaded 1.5 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/haven_1.1.2.zip' Content type 'application/zip' length 967832 bytes (945 KB) downloaded 945 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/curl_3.2.zip' Content type 'application/zip' length 2965556 bytes (2.8 MB) downloaded 2.8 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/data.table_1.11.4.zip' Content type 'application/zip' length 1813144 bytes (1.7 MB) downloaded 1.7 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/readxl_1.1.0.zip' Content type 'application/zip' length 1487966 bytes (1.4 MB) downloaded 1.4 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/openxlsx_4.1.0.zip' Content type 'application/zip' length 2346256 bytes (2.2 MB) downloaded 2.2 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/minqa_1.2.4.zip' Content type 'application/zip' length 665581 bytes (649 KB) downloaded 649 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/nloptr_1.0.4.zip' Content type 'application/zip' length 1173379 bytes (1.1 MB) downloaded 1.1 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/RcppEigen_0.3.3.4.0.zip' Content type 'application/zip' length 2664139 bytes (2.5 MB) downloaded 2.5 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/htmlwidgets_1.2.zip' Content type 'application/zip' length 772951 bytes (754 KB) downloaded 754 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/htmltools_0.3.6.zip' Content type 'application/zip' length 616723 bytes (602 KB) downloaded 602 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/knitr_1.20.zip' Content type 'application/zip' length 919860 bytes (898 KB) downloaded 898 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/jsonlite_1.5.zip' Content type 'application/zip' length 1159857 bytes (1.1 MB) downloaded 1.1 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/shiny_1.1.0.zip' Content type 'application/zip' length 2863513 bytes (2.7 MB) downloaded 2.7 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/crosstalk_1.0.0.zip' Content type 'application/zip' length 599160 bytes (585 KB) downloaded 585 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/manipulateWidget_0.10.0.zip' Content type 'application/zip' length 1778158 bytes (1.7 MB) downloaded 1.7 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/carData_3.0-1.zip' Content type 'application/zip' length 1775320 bytes (1.7 MB) downloaded 1.7 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/abind_1.4-5.zip' Content type 'application/zip' length 40443 bytes (39 KB) downloaded 39 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/pbkrtest_0.4-7.zip' Content type 'application/zip' length 196244 bytes (191 KB) downloaded 191 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/quantreg_5.36.zip' Content type 'application/zip' length 2129580 bytes (2.0 MB) downloaded 2.0 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/maptools_0.9-3.zip' Content type 'application/zip' length 1821920 bytes (1.7 MB) downloaded 1.7 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/rio_0.5.10.zip' Content type 'application/zip' length 102103 bytes (99 KB) downloaded 99 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/lme4_1.1-18-1.zip' Content type 'application/zip' length 5244007 bytes (5.0 MB) downloaded 5.0 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/xtable_1.8-3.zip' Content type 'application/zip' length 701179 bytes (684 KB) downloaded 684 KB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/rgl_0.99.16.zip' Content type 'application/zip' length 3886152 bytes (3.7 MB) downloaded 3.7 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/car_3.0-2.zip' Content type 'application/zip' length 1482362 bytes (1.4 MB) downloaded 1.4 MB trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/matlib_0.9.1.zip' Content type 'application/zip' length 331105 bytes (323 KB) downloaded 323 KB package ‘ps’ successfully unpacked and MD5 sums checked package ‘rematch’ successfully unpacked and MD5 sums checked package ‘withr’ successfully unpacked and MD5 sums checked package ‘processx’ successfully unpacked and MD5 sums checked package ‘forcats’ successfully unpacked and MD5 sums checked package ‘hms’ successfully unpacked and MD5 sums checked package ‘readr’ successfully unpacked and MD5 sums checked package ‘cellranger’ successfully unpacked and MD5 sums checked package ‘zip’ successfully unpacked and MD5 sums checked package ‘yaml’ successfully unpacked and MD5 sums checked package ‘evaluate’ successfully unpacked and MD5 sums checked package ‘highr’ successfully unpacked and MD5 sums checked package ‘markdown’ successfully unpacked and MD5 sums checked package ‘httpuv’ successfully unpacked and MD5 sums checked package ‘mime’ successfully unpacked and MD5 sums checked package ‘sourcetools’ successfully unpacked and MD5 sums checked package ‘later’ successfully unpacked and MD5 sums checked package ‘promises’ successfully unpacked and MD5 sums checked package ‘crayon’ successfully unpacked and MD5 sums checked package ‘miniUI’ successfully unpacked and MD5 sums checked package ‘base64enc’ successfully unpacked and MD5 sums checked package ‘webshot’ successfully unpacked and MD5 sums checked package ‘SparseM’ successfully unpacked and MD5 sums checked package ‘MatrixModels’ successfully unpacked and MD5 sums checked package ‘sp’ successfully unpacked and MD5 sums checked package ‘haven’ successfully unpacked and MD5 sums checked package ‘curl’ successfully unpacked and MD5 sums checked package ‘data.table’ successfully unpacked and MD5 sums checked package ‘readxl’ successfully unpacked and MD5 sums checked package ‘openxlsx’ successfully unpacked and MD5 sums checked package ‘minqa’ successfully unpacked and MD5 sums checked package ‘nloptr’ successfully unpacked and MD5 sums checked package ‘RcppEigen’ successfully unpacked and MD5 sums checked package ‘htmlwidgets’ successfully unpacked and MD5 sums checked package ‘htmltools’ successfully unpacked and MD5 sums checked package ‘knitr’ successfully unpacked and MD5 sums checked package ‘jsonlite’ successfully unpacked and MD5 sums checked package ‘shiny’ successfully unpacked and MD5 sums checked package ‘crosstalk’ successfully unpacked and MD5 sums checked package ‘manipulateWidget’ successfully unpacked and MD5 sums checked package ‘carData’ successfully unpacked and MD5 sums checked package ‘abind’ successfully unpacked and MD5 sums checked package ‘pbkrtest’ successfully unpacked and MD5 sums checked package ‘quantreg’ successfully unpacked and MD5 sums checked package ‘maptools’ successfully unpacked and MD5 sums checked package ‘rio’ successfully unpacked and MD5 sums checked package ‘lme4’ successfully unpacked and MD5 sums checked package ‘xtable’ successfully unpacked and MD5 sums checked package ‘rgl’ successfully unpacked and MD5 sums checked package ‘car’ successfully unpacked and MD5 sums checked package ‘matlib’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\tarmo.veskioja\AppData\Local\Temp\Rtmp0yY8zX\downloaded_packages > ?powerMethod() Error in .helpForCall(topicExpr, parent.frame()) : no methods for ‘powerMethod’ and no documentation for it as a function > library(matlib) Warning message: package ‘matlib’ was built under R version 3.4.4 > ?powerMethod() > powerMethod(turniir) $vector_iterations v1 v2 v3 v4 v5 v6 v7 v8 [1,] 1 0.4364358 0.3779645 0.3553345 0.3904344 0.3964912 0.3625283 0.3804976 [2,] 1 0.4364358 0.5039526 0.4264014 0.4685213 0.4846003 0.4500352 0.4565971 [3,] 1 0.4364358 0.3779645 0.4264014 0.4294778 0.3964912 0.4125322 0.4289245 [4,] 1 0.2182179 0.2519763 0.2842676 0.2733041 0.2423002 0.2750215 0.2767255 [5,] 1 0.4364358 0.3779645 0.4264014 0.4294778 0.3964912 0.4125322 0.4289245 [6,] 1 0.4364358 0.5039526 0.4974683 0.4294778 0.4846003 0.5000391 0.4496790 v9 v10 v11 v12 v13 v14 v15 v16 [1,] 0.3949574 0.3728312 0.3753609 0.3907938 0.3794994 0.3746796 0.3862867 0.3828921 [2,] 0.4801443 0.4605562 0.4548347 0.4733175 0.4664841 0.4566003 0.4679202 0.4685577 [3,] 0.4065738 0.4079212 0.4242678 0.4133003 0.4075962 0.4195204 0.4165836 0.4093288 [4,] 0.2516886 0.2653681 0.2763243 0.2591652 0.2613389 0.2731410 0.2642571 0.2607155 [5,] 0.4065738 0.4079212 0.4242678 0.4133003 0.4075962 0.4195204 0.4165836 0.4093288 [6,] 0.4685279 0.4956462 0.4646161 0.4630873 0.4876529 0.4738468 0.4635921 0.4803900 v17 v18 v19 v20 v21 v22 v23 v24 [1,] 0.3761342 0.3828821 0.3839156 0.3781483 0.3808986 0.3836172 0.3798625 0.3800900 [2,] 0.4595593 0.4646043 0.4683887 0.4622399 0.4631253 0.4672773 0.4640683 0.4628686 [3,] 0.4160249 0.4174699 0.4114987 0.4140540 0.4170525 0.4132752 0.4133019 0.4161709 [4,] 0.2696704 0.2668899 0.2617774 0.2670256 0.2677165 0.2632967 0.2654735 0.2675152 [5,] 0.4160249 0.4174699 0.4114987 0.4140540 0.4170525 0.4132752 0.4133019 0.4161709 [6,] 0.4779675 0.4666388 0.4754272 0.4787003 0.4699931 0.4728340 0.4777363 0.4725711 v25 v26 v27 v28 v29 v30 v31 v32 [1,] 0.3828161 0.3809772 0.3800246 0.3820111 0.3815228 0.3803074 0.3814242 0.3816679 [2,] 0.4660528 0.4650217 0.4632258 0.4651127 0.4653283 0.4637583 0.4645553 0.4652651 [3,] 0.4143962 0.4132963 0.4153245 0.4149225 0.4136232 0.4147252 0.4150420 0.4140084 [4,] 0.2646065 0.2648299 0.2669127 0.2654677 0.2647645 0.2662970 0.2658954 0.2649730 [5,] 0.4143962 0.4132963 0.4153245 0.4149225 0.4136232 0.4147252 0.4150420 0.4140084 [6,] 0.4719974 0.4762863 0.4741012 0.4721687 0.4750173 0.4747489 0.4727409 0.4741746 v33 v34 v35 v36 v37 v38 v39 v40 [1,] 0.3806675 0.3810941 0.3815960 0.3809638 0.3809680 0.3814476 0.3811510 0.3809668 [2,] 0.4642234 0.4643198 0.4650553 0.4645319 0.4642914 0.4648378 0.4646869 0.4643627 [3,] 0.4143994 0.4149485 0.4143145 0.4142838 0.4147862 0.4145022 0.4142929 0.4146376 [4,] 0.2658436 0.2660144 0.2652462 0.2655860 0.2659639 0.2654736 0.2654854 0.2658521 [5,] 0.4143994 0.4149485 0.4143145 0.4142838 0.4147862 0.4145022 0.4142929 0.4146376 [6,] 0.4748287 0.4733352 0.4737505 0.4746353 0.4737772 0.4736277 0.4743735 0.4740312 v41 v42 v43 v44 v45 v46 v47 v48 [1,] 0.3813057 0.3812388 0.3810213 0.3812054 0.3812586 0.3810857 0.3811510 0.3812429 [2,] 0.4646761 0.4647316 0.4644587 0.4645834 0.4647152 0.4645395 0.4645465 0.4646762 [3,] 0.4145863 0.4143549 0.4145356 0.4146015 0.4144234 0.4144822 0.4145820 0.4144761 [4,] 0.2656187 0.2654819 0.2657436 0.2656878 0.2655224 0.2656662 0.2657043 0.2655714 [5,] 0.4145863 0.4143549 0.4145356 0.4146015 0.4144234 0.4144822 0.4145820 0.4144761 [6,] 0.4736720 0.4741528 0.4741325 0.4737783 0.4740105 0.4741385 0.4738831 0.4739418 v49 v50 v51 v52 v53 v54 v55 v56 [1,] 0.3811369 0.3811316 0.3812157 0.3811682 0.3811332 0.3811908 0.3811823 0.3811436 [2,] 0.4645915 0.4645444 0.4646378 0.4646166 0.4645583 0.4646102 0.4646229 0.4645756 [3,] 0.4144648 0.4145525 0.4145075 0.4144681 0.4145265 0.4145208 0.4144798 0.4145092 [4,] 0.2656237 0.2656930 0.2656107 0.2656082 0.2656725 0.2656351 0.2656089 0.2656535 [5,] 0.4144648 0.4145525 0.4145075 0.4144681 0.4145265 0.4145208 0.4144798 0.4145092 [6,] 0.4741006 0.4739587 0.4739244 0.4740536 0.4740007 0.4739346 0.4740154 0.4740164 v57 v58 v59 v60 v61 v62 v63 v64 [1,] 0.3811738 0.3811848 0.3811550 0.3811648 0.3811815 0.3811638 0.3811619 0.3811766 [2,] 0.4645949 0.4646191 0.4645896 0.4645891 0.4646119 0.4645983 0.4645893 0.4646052 [3,] 0.4145225 0.4144919 0.4145005 0.4145186 0.4145010 0.4144980 0.4145132 0.4145062 [4,] 0.2656461 0.2656167 0.2656403 0.2656483 0.2656254 0.2656333 0.2656459 0.2656322 [5,] 0.4145225 0.4144919 0.4145005 0.4145186 0.4145010 0.4144980 0.4145132 0.4145062 [6,] 0.4739542 0.4739915 0.4740161 0.4739726 0.4739804 0.4740088 0.4739854 0.4739781 v65 v66 v67 v68 v69 v70 v71 v72 [1,] 0.3811691 0.3811625 0.3811722 0.3811713 0.3811644 0.3811694 0.3811716 0.3811665 [2,] 0.4646023 0.4645919 0.4646005 0.4646032 0.4645950 0.4645980 0.4646024 0.4645974 [3,] 0.4144989 0.4145087 0.4145083 0.4145010 0.4145058 0.4145084 0.4145032 0.4145044 [4,] 0.2656310 0.2656422 0.2656362 0.2656313 0.2656389 0.2656380 0.2656328 0.2656366 [5,] 0.4144989 0.4145087 0.4145083 0.4145010 0.4145058 0.4145084 0.4145032 0.4145044 [6,] 0.4740004 0.4739924 0.4739803 0.4739938 0.4739947 0.4739839 0.4739898 0.4739945 v73 v74 v75 v76 v77 v78 v79 v80 [1,] 0.3811679 0.3811709 0.3811680 0.3811675 0.3811700 0.3811689 0.3811676 0.3811693 [2,] 0.4645971 0.4646011 0.4645989 0.4645972 0.4645999 0.4645995 0.4645977 0.4645991 [3,] 0.4145076 0.4145047 0.4145040 0.4145067 0.4145056 0.4145042 0.4145059 0.4145059 [4,] 0.2656383 0.2656343 0.2656355 0.2656378 0.2656355 0.2656351 0.2656371 0.2656362 [5,] 0.4145076 0.4145047 0.4145040 0.4145067 0.4145056 0.4145042 0.4145059 0.4145059 [6,] 0.4739871 0.4739880 0.4739931 0.4739893 0.4739878 0.4739916 0.4739904 0.4739882 v81 v82 v83 v84 v85 v86 v87 v88 [1,] 0.3811692 0.3811680 0.3811688 0.3811692 0.3811683 0.3811686 0.3811691 0.3811686 [2,] 0.4645996 0.4645982 0.4645987 0.4645995 0.4645987 0.4645985 0.4645992 0.4645989 [3,] 0.4145046 0.4145054 0.4145059 0.4145050 0.4145052 0.4145057 0.4145053 0.4145051 [4,] 0.2656352 0.2656365 0.2656364 0.2656355 0.2656361 0.2656365 0.2656358 0.2656360 [5,] 0.4145046 0.4145054 0.4145059 0.4145050 0.4145052 0.4145057 0.4145053 0.4145051 [6,] 0.4739905 0.4739908 0.4739889 0.4739898 0.4739907 0.4739894 0.4739895 0.4739904 v89 [1,] 0.3811685 [2,] 0.4645986 [3,] 0.4145056 [4,] 0.2656364 [5,] 0.4145056 [6,] 0.4739898 $iter [1] 89 $vector [,1] [1,] 0.3811689 [2,] 0.4645990 [3,] 0.4145054 [4,] 0.2656360 [5,] 0.4145054 [6,] 0.4739895 $value [1] 1.784358 > powerMethod(turniir)$vector [,1] [1,] 0.3811689 [2,] 0.4645990 [3,] 0.4145054 [4,] 0.2656360 [5,] 0.4145054 [6,] 0.4739895 > sum(powerMethod(turniir)$vector) [1] 2.414404 > powerMethod(turniir)$vector % 2.414404 Error: unexpected input in "powerMethod(turniir)$vector % 2.414404" > rank(powerMethod(turniir)$vector) [1] 2.0 5.0 3.5 1.0 3.5 6.0 > 1% sum(powerMethod(turniir)$vector) Error: unexpected input in "1% sum(powerMethod(turniir)$vector)" > 1/ sum(powerMethod(turniir)$vector) [1] 0.4141808 > powerMethod(turniir)$vector / 2.414404 [,1] [1,] 0.1578729 [2,] 0.1924280 [3,] 0.1716802 [4,] 0.1100214 [5,] 0.1716802 [6,] 0.1963174 > rank(powerMethod(turniir)$vector / 2.414404) [1] 2.0 5.0 3.5 1.0 3.5 6.0 > ?rank > 7-rank(powerMethod(turniir)$vector / 2.414404) [1] 5.0 2.0 3.5 6.0 3.5 1.0 > yur <- as.matrix(read.csv('2015_Kyushu_Juryo.csv', header = FALSE, sep = ",")) > yur V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18 V19 V20 V21 V22 V23 V24 V25 V26 V27 V28 [1,] 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [2,] 1 0 0 0 1 0 1 0 0 1 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 [3,] 0 1 0 0 1 0 0 1 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 [4,] 1 1 1 0 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 [5,] 1 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 [6,] 1 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 [7,] 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 [8,] 0 1 0 1 0 1 1 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 [9,] 1 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 [10,] 1 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 [11,] 1 0 0 1 1 1 1 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 [12,] 1 1 0 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 [13,] 0 0 0 0 0 1 1 1 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 [14,] 1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 [15,] 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [16,] 0 0 1 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 1 0 0 0 1 0 0 [17,] 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 [18,] 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 1 1 0 [19,] 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 1 1 1 0 0 [20,] 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 [21,] 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 1 0 1 0 0 1 0 1 1 0 1 [22,] 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 1 1 0 0 1 0 0 0 0 0 0 1 [23,] 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 1 1 0 0 1 0 1 0 0 0 1 [24,] 0 0 0 0 0 0 0 0 1 0 0 1 1 0 1 1 0 0 0 1 0 1 0 0 0 1 0 1 [25,] 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 0 1 0 1 1 0 0 0 1 1 [26,] 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 1 0 0 1 0 0 0 0 1 0 1 1 [27,] 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 [28,] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 1 0 > 29-rank(powerMethod(yur)$vector) [1] 28 19 17 21 23 27 25 11 2 16 6 15 20 18 26 1 13 4 8 24 3 12 5 9 7 10 14 22 > res50_900 <- as.matrix(read.csv('2015_50_900.csv', header = FALSE, sep = ",")) > 51-rank(powerMethod(res50_900)$vector) [1] 3 19 38 21 48 5 30 4 34 40 8 17 15 47 12 14 18 1 49 32 10 29 37 31 11 46 50 26 33 20 25 16 36 45 24 23 [37] 7 43 13 41 27 39 42 22 28 9 2 6 44 35 > sum(res50_900) [1] 900 >