Day 2 - Basic Usages of R

0. R and RStudio Install

If you want to install R and RStudio in your computer, click the title above to the link that illustrated how to install R and RStudio.

The following contents are extracted from the website RafaLAB and official R documentation sites, and the contents are modified to fit in the datacamp light environment.

1. Basic R Functions

R provides a lot of useful pre-built functions to users. In this practice, you will be able to experience a vareity of pre-built functions in R.

Source: R basics @ RafaLab/dsbook

1-1 1-2 1-3 1-4
1-5 1-6 1-7 1-8
1-9 1-10 1-11 1-12
1-13 1-14 1-15 1-16

2. Basic Programming in R

In this R course, you will learn the basic principles of programming skills in R. This section includes how to use conditional expression, for-loop, and packages.

Source: Programming basics @ RafaLab/dsbook

2-1 2-2 2-3 2-4
2-5 2-6    

3. Dplyr: Data Processing package

In this section, we would like to introduce a powerful R package in data processing: Dplyr. Dplyr package makes it easy to revise and handle data frame.

Source : Tidyverse

3-1 3-2 3-3 3-4
3-5 3-6 3-7 3-8
3-9 3-10 3-11 3-12

4. Importing Data in R @ RafaLab/dsbook

In this R course, you will learn the basic usage of importing data in R.

4-1 4-2 4-3 4-4 4-5