#Use as_tibble function from tibble package
tibble::as_tibble()NEOF Tidyverse
This is a resource for the R Tidyverse suite of packages. It is intended as a quick one-stop reference for the various tidyverse packages and their functions, also known as a cookbook.
This website does not go into great details rather it provides:
- Concise explanations
- Quick examples
- Links to the official documentation
This webpage is split into sections for each of the main packages in tidyverse. These are:
- tibble: A new and improved data frame-like object
- dplyr: data manipulation, also introduces the tidyverse pipe (
|>) - readr: Read in tabular data
- tidyr: Tidying tibbles, includes going from wide to long tibbles/data frames
- ggplot2: Visualisation with the grammar of graphics
- stringr: String manipulation (in development)
- forcats: Factor manipulation (in development)
- purrr: Functions & vectors (in development)
- lubridate: Data-time data (in development)
Note: The sections marked with “in development” are currently empty.
Reading order
If you are starting out with Tidyverse I recommend reading through the website in the above order. The above sections can be grouped into the following chapters:
Package names
To keep consistent we will include the package name of each function used in code. This is carried out like below.
Note: Don’t run the below command
Installation & loading
Ensure you have tidyverse installed and loaded before running commands within the rest of these materials.
You can install all the tidyverse packages with the following command:
install.packages("tidyverse")Once installed you can load the package suite:
library("tidyverse")External links
- Tidyverse homepage
- Cheatsheets
- R for Data Science (2e): If you want a more structured course this is a good place to start.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.