try R learning


R 是一個程式語言、統計計算與繪圖的整合環境,是 GNU 的一個project萌生於貝爾實驗室(Bell Laboratories),主要作者為 John Chambers。其語法與 S 語言(S-Plus)非常相似,提供非常多的統計工具,包含線性與非線性模型(linear and nonlinear modelling)、統計檢定(statistical tests)、時間序列分析(time series analysis)、分類分析(classification)、群集分析(clustering)等相關工具。

R 擁有 CRAN, a network of ftp and web servers around the world that store identical, up-to-date, versions of code and documentation for R.(目前有 4435 多種packages,幾乎由統計學家更新)

1. Using R

  • Expressions
  • Logical Values
  • Variables
  • Functions
  • repeat print
1
2
> rep("123", times=3)
[1] "123" "123" "123"

Push git onto Github


bash
1
2
3
4
5
6
7
8
9
10
$ cd project_folder
$ git init
$ git add .
$ git commit -a -m 'init'
$ git remote add github https://github.com/evenchange4/101-1_MMP_HW1_Calculator.git
$ git remote -v
$ git pull github master
$ git push github master
github login