第 2 章 R and RStudio

2.1 主要參考書籍

2.2 What is R? What is RStudio?

RStudio

Integrated Development Environment (IDE) for R

2.3 RStudio environment

Editor

Two ways of keeping your script

Script: a collection of code lines

In this course, to save your script we will:

  • mainly use R Markdown/R Notebook: .Rmd file

  • sometimes, R Script: .R file

2.4 R Markdown

  • Front matter

    • Setup of the document layout
    • Use YAML language
  • Code chunk

    • Where the code for execution
  • Text area

    • Take Markdown format