Excel is very useful, but there is more suitable software for data analysis and visualization with statistics and machine learning.
That’s R. R provides interfaces to analyze data with mathematics easily.
In this article, I’ll share how to install R on Windows.
Contents
Target Environment
- OS
- Windows7 Enterprise Service Pack1
- R
- 3.2.0
Install Flow
It’s easy to install R. Just run installer.- Click here and move to download page
- Click “base”
![ダウンロードサイト](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150516_r_install_inst1-300x64.png)
- Click “Download R 3.2.0 for Windows” and start to download
![インストーラーダウンロード](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150516_r_install_inst2-300x105.png)
- Dboule-click downloaded installer
- Just push “Next” button like following
![言語選択](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall1.png)
![インストーラ2](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall2.png)
![インストーラ3](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall3.png)
![インストーラ4](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall4.png)
![インストーラ5](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall5.png)
![インストーラ6](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall6.png)
![インストーラ7](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall7.png)
![インストーラ8](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall8.png)
![インストーラ9](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall9.png)
![インストーラ10](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall10.png)
Behavior Check
Let’s check R behavior a little bit.- Double-click shortcut icon (you can choose 32bit or 64bit version)
![ショートカット](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall11.png)
![ワークスペース](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall12.png)
- Check built-in dataset and visualization
> iris > plot(iris)
![iris](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall13-300x241.png)
![plot](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall14.png)
How to install library
R has many kind of library about statistics and machine learning.Actually, I download new library and analyze data when I do new analysis.
I’d like to share how to install library in R.
- Click “Package” and “Install Package” in menu
![ライブラリ1](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall15.png)
- Choose “Japan(Tokyo)” as mirror site to download library
![ライブラリ2](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall16.png)
- Choose library which you want to install (in this time choose “arules” which is association analysis library
![ライブラリ3](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150514_Rinstall17.png)
- Check loading library
> library(arules) > data(Groceries) > Groceries
![ライブラリ4](http://160.16.71.152:12080/wp-content/uploads/2015/05/20150516_r_install_library1.png)