R

コンソール出力の幅を変える

R

>options(width=80)

分散分析(ANOVA)

R

http://www.personality-project.org/R/r.anova.html http://www.ats.ucla.edu/stat/r/seminars/repeated_measures/repeated_measures.htm http://zoonek2.free.fr/UNIX/48_R/13.html http://www.psych.upenn.edu/~baron/rpsych/rpsych.html#SECTION00079000…

標準入力を用いる

R

>x

多変量データの正規性検定

R

library(mvnormtest) 中の,mshapiro.testを使えばいいらしい.http://www.stat.ucl.ac.be/ISdidactique/Rhelp/library/mvnormtest/html/mshapiro.test.html

SJISのCSVを読み込む

R

read.csv(file('hoge.csv'),encoding='CP932')read.csv(file='hoge.csv',fileEncoding='CP932')っていうパターンもあり?

R on Max OS Xで日本語

R Mac

defaults write org.R-project.R force.LANG jp_JP.UTF-8

指定の要素以外を取り出す

R >xx [1] 1 2 3 4 5 >x[-1] [1] 2 3 4 5 Matlab >>x=1:5 x= 1 2 3 4 5 >>x(setdiff(1:size(x,2),1) ans = 2 3 4 5 Matlabの方でもっといい方法はないものだろうか…

RMatlab

RとMatlabの相互インターフェイスインストール方法 http://www.omegahat.org/RMatlab/ http://www.stanford.edu/~dgleich/notebook/2009/09/rmatlab_using_r_from_matlab.html起動 $source RMatlab/inst/scripts/RMatlab.sh $matlab( -nojvm -nodisplay)>>in…