---
# System prepended metadata

title: R 語言不專業教學
tags: [R Language]

---

---
disqus: yueswater
---

# R 語言不專業教學

{%hackmd @themes/orangeheart %}
<style>
.likecoin-button {
  position: relative;
  width: 100%;
  max-width: 485px;
  max-height: 240px;
  margin: 0 auto;
}
.likecoin-button > div {
  padding-top: 49.48454%;
}
.likecoin-button > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
</style>

###### tags: `R Language`


> R is a programming language for statistical computing and graphics supported by the R Core Team and the R Foundation for Statistical Computing. Created by statisticians Ross Ihaka and Robert Gentleman, R is used among data miners and statisticians for data analysis and developing statistical software. Users have created packages to augment the functions of the R language.[^1]
> [color=#216bbf]

對於許多學習社會科學的人而言，$\texttt{R}$ 語言是一門再基礎不過的程式語言了。誠如維基百科上面所言，$\texttt{R}$ 本身就是一套統計軟體，個人使用過 $\texttt{SPSS}$ 與其他著名的統計軟體後，發現 $\texttt{R}$ 最好用。一方面除了它語言邏輯十分簡潔，套件的多樣性如 $\texttt{Python}$ 一般，有一個專屬於 $\texttt{R}$ 的社群，集結了許多大神的作品。阿岳在此十分推薦剛入門程式語言的人學。

## 安裝 R 與 R Studio

首先我們可以先到[臺大資工系的鏡像網站](http://cran.csie.ntu.edu.tw/)上根據使用者所使用的系統下載相對應的`R`。

![](https://i.imgur.com/iRD88ri.jpg)

下載完畢並安裝完成後，接著到 [R Studio 官網](https://www.rstudio.com/products/rstudio/download/)下載 R Studio。除非你有需要使用更高階的功能，否則我們就當一個免費仔就好，勇敢地點下 Free 底下的 Download！

![](https://i.imgur.com/9oNfbYF.jpg)

接著就可以打開 R Studio 開始學習`R`語言囉！如果單看文字仍不了解的話可以參考以下的影片。

- Windows 系統
<iframe width="750" height="640" src="https://www.youtube.com/embed/TFGYlKvQEQ4" title="How to download and install R and RStudio" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

- MacOS 系統

<iframe width="750" height="640" src="https://www.youtube.com/embed/JqV-USGR6AA" title="How to install R and RStudio on Mac in 4 minutes (August 2021)" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

## 筆記專區

<h3><a href='https://hackmd.io/@yueswater/TeX_with_R_Markdown' target="_self">R Markdown 與 TeX</a></h3>

<h3><a href='https://hackmd.io/@yueswater/R_writing_Style' target="_self">R 語言的撰寫技巧</a></h3>

<h3><a href='https://hackmd.io/@yueswater/R_Basic' target="_self">R 基礎技能：運算、流程控制與迴圈</a></h3>

<h3><a href='https://hackmd.io/@yueswater/R_Data_Visualisation' target="_self">R 語言中的資料視覺化</a></h3>

<h3><a href='https://hackmd.io/@yueswater/Chart_Studio_Tutorial' target="_self">Chart Studio 教學</a></h3>




[^1]:節錄自[維基百科](https://en.wikipedia.org/wiki/R_(programming_language))

<div class="likecoin-embed likecoin-button">
  <div></div>
  <iframe scrolling="no" frameborder="0" src="https://button.like.co/in/embed/xiaolong70701/button?referrer=hackmd.io"></iframe>
</div>