Introduction

Welcome to R-Ladies Rome!

Welcome to R-Ladies Rome!
Published

March 22, 2023

Hi, I’m Isabella!

Keep in touch on Twitter /Mastodon (@ivelasq3) or LinkedIn (@ivelasq).

Stay in the loop

About the tidyverse

The tidyverse is an opinionated collection of R packages designed for data science.

See all the packages in the tidyverse:

tidyverse::tidyverse_packages(include_self = TRUE)
 [1] "broom"         "conflicted"    "cli"           "dbplyr"       
 [5] "dplyr"         "dtplyr"        "forcats"       "ggplot2"      
 [9] "googledrive"   "googlesheets4" "haven"         "hms"          
[13] "httr"          "jsonlite"      "lubridate"     "magrittr"     
[17] "modelr"        "pillar"        "purrr"         "ragg"         
[21] "readr"         "readxl"        "reprex"        "rlang"        
[25] "rstudioapi"    "rvest"         "stringr"       "tibble"       
[29] "tidyr"         "xml2"          "tidyverse"    

pak

Install the newest versions of packages using pak:

pak::pak(c("tidyverse", "dplyr", "tidyr", "stringr", "purrr", "ggplot2"))

Lifecycle stages

Learn about the lifecycle stages:

A diagram showing the transitions between the four main stages: experimental can become stable and stable can become deprecated or superseded. Example: recode

A note on vctrs

Quite a few functions have been rewritten to use vctrs package behind the scenes:

The tidyverse team uses vctrs to keep recycling rules and coercion rules in one place.

This doesn’t impact data scientists too much but it means more consistency, better error messages, bug fixes, and higher quality code.


Attaching package: 'dplyr'
The following objects are masked from 'package:stats':

    filter, lag
The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union
x <- c(1:10, NA)
if_else(x %% 2 == 0, x, "x") 
Error in `if_else()`:
! Can't combine `true` <integer> and `false` <character>.

Base R pipe

You will see a lot of references to the base R pipe: