Day1 preparation - e394282438/R-personal-study-notes GitHub Wiki
Welcome to the R-study wiki!
R for Data Science on line
1.Download R
R
update regularly
2.Download RStudio
RStudio
Install RStudio in the same location with R, the path of R cannot contain non-English characters
update regularly
3.RTools
RTools_tsinghua mirrors
4.The tidyverse
Install
install.packages("tidyverse")
Library
library(tidyverse)
#> ── Attaching packages ─────────────── tidyverse 1.3.2 ──
#> ✔ ggplot2 3.4.0 ✔ purrr 0.3.5
#> ✔ tibble 3.1.8 ✔ dplyr 1.0.10
#> ✔ tidyr 1.2.1 ✔ stringr 1.5.0
#> ✔ readr 2.1.3 ✔ forcats 0.5.2
#> ── Conflicts ────────────────── tidyverse_conflicts() ──
#> ✖ dplyr::filter() masks stats::filter()
#> ✖ dplyr::lag() masks stats::lag()
Check updates and install by running
tidyverse_update()
5.Other packages
These are data on world development, baseball, airline flights, and body measurements of penguins that we'll use to illusterate key data science ideas.
install.packages(c("gapminder", "Lahman", "nycflights13", "palmerpenguins", "wakefield"))