Tidverse is a collection of
R packages which we will be using intensively for the remainder of this
course. If you haven’t installed tidyverse
then you can do
this with:
install.packages("tidyverse") # needed only once
and load it into R:
library(tidyverse) # each time you start RStudio
Something similar to the following will appear on your screen after loading tidyverse:
> library(tidyverse)
── Attaching packages ────────────────────────────────────────────────────────────────────── tidyverse 1.3.1 ──
✓ ggplot2 3.3.3 ✓ purrr 0.3.4
✓ tibble 3.1.2 ✓ dplyr 1.0.6
✓ tidyr 1.1.3 ✓ stringr 1.4.0
✓ readr 1.4.0 ✓ forcats 0.5.1
── Conflicts ───────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
x dplyr::filter() masks stats::filter()
x dplyr::lag() masks stats::lag()
>
It shows the sub-packages and the versions and also some conflicts.
⚠️You may ignore these Conflicts.
You now have access to an extensive set of functions for data manipulation and visualisation.
dplyr
: Data transformation
%>%
tidyr
: Change the table layout
Copyright © 2023 Biomedical Data Sciences (BDS) | LUMC