• Stars
    star
    1,480
  • Rank 28,967 (Top 0.7 %)
  • Language
    R
  • License
    Other
  • Created about 7 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Easily install and load packages from the tidyverse

tidyverse

CRAN status R-CMD-check Codecov test coverage

Overview

The tidyverse is a set of packages that work in harmony because they share common data representations and API design. The tidyverse package is designed to make it easy to install and load core packages from the tidyverse in a single command.

If youโ€™d like to learn how to use the tidyverse effectively, the best place to start is R for Data Science (2e).

Installation

# Install from CRAN
install.packages("tidyverse")
# Install the development version from GitHub
# install.packages("pak")
pak::pak("tidyverse/tidyverse")

If youโ€™re compiling from source, you can run pak::pkg_system_requirements("tidyverse"), to see the complete set of system packages needed on your machine.

Usage

library(tidyverse) will load the core tidyverse packages:

You also get a condensed summary of conflicts with other packages you have loaded:

library(tidyverse)
#> โ”€โ”€ Attaching core tidyverse packages โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ tidyverse 2.0.0.9000 โ”€โ”€
#> โœ” dplyr     1.1.3     โœ” readr     2.1.4
#> โœ” forcats   1.0.0     โœ” stringr   1.5.0
#> โœ” ggplot2   3.4.4     โœ” tibble    3.2.1
#> โœ” lubridate 1.9.3     โœ” tidyr     1.3.0
#> โœ” purrr     1.0.2     
#> โ”€โ”€ Conflicts โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ tidyverse_conflicts() โ”€โ”€
#> โœ– dplyr::filter() masks stats::filter()
#> โœ– dplyr::lag()    masks stats::lag()
#> โ„น Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

You can see conflicts created later with tidyverse_conflicts():

library(MASS)
#> 
#> Attaching package: 'MASS'
#> The following object is masked from 'package:dplyr':
#> 
#>     select
tidyverse_conflicts()
#> โ”€โ”€ Conflicts โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ tidyverse_conflicts() โ”€โ”€
#> โœ– dplyr::filter() masks stats::filter()
#> โœ– dplyr::lag()    masks stats::lag()
#> โœ– MASS::select()  masks dplyr::select()
#> โ„น Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

And you can check that all tidyverse packages are up-to-date with tidyverse_update():

tidyverse_update()
#> The following packages are out of date:
#>  * broom (0.4.0 -> 0.4.1)
#>  * DBI   (0.4.1 -> 0.5)
#>  * Rcpp  (0.12.6 -> 0.12.7)
#>  
#> Start a clean R session then run:
#> install.packages(c("broom", "DBI", "Rcpp"))

Packages

As well as the core tidyverse, installing this package also installs a selection of other packages that youโ€™re likely to use frequently, but probably not in every analysis. This includes packages for:

  • Working with specific types of vectors:

    • hms, for times.
  • Importing other types of data:

    • feather, for sharing with Python and other languages.
    • haven, for SPSS, SAS and Stata files.
    • httr, for web apis.
    • jsonlite for JSON.
    • readxl, for .xls and .xlsx files.
    • rvest, for web scraping.
    • xml2, for XML.
  • Modelling

    • modelr, for modelling within a pipeline
    • broom, for turning models into tidy data

Code of Conduct

Please note that the tidyverse project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

More Repositories

1

ggplot2

An implementation of the Grammar of Graphics in R
R
6,128
star
2

dplyr

dplyr: A grammar of data manipulation
R
4,556
star
3

rvest

Simple web scraping for R
R
1,418
star
4

tidyr

Tidy Messy Data
R
1,281
star
5

purrr

A functional programming toolkit for R
R
1,185
star
6

readr

Read flat files (csv, tsv, fwf) into R
R
959
star
7

magrittr

Improve the readability of R code with the pipe
R
942
star
8

datascience-box

Data Science Course in a Box
JavaScript
852
star
9

reprex

Render bits of R code for sharing, e.g., on GitHub or StackOverflow.
R
716
star
10

lubridate

Make working with dates in R just that little bit easier
R
693
star
11

readxl

Read excel files (.xls and .xlsx) into R ๐Ÿ–‡
C++
693
star
12

dtplyr

Data table backend for dplyr
R
639
star
13

multidplyr

A dplyr backend that partitions a data frame over multiple processes
R
631
star
14

tibble

A modern re-imagining of the data frame
R
623
star
15

vroom

Fast reading of delimited files
C++
589
star
16

stringr

A fresh approach to string manipulation in R
R
544
star
17

forcats

๐Ÿˆ๐Ÿˆ๐Ÿˆ๐Ÿˆ: tools for working with categorical variables (factors)
R
522
star
18

dbplyr

Database (DBI) backend for dplyr
R
416
star
19

haven

Read SPSS, Stata and SAS files from R
C
414
star
20

modelr

Helper functions for modelling
R
399
star
21

googlesheets4

Google Spreadsheets R API (reboot of the googlesheets package)
R
330
star
22

googledrive

Google Drive R API
R
297
star
23

style

The tidyverse style guide for R code
HTML
275
star
24

tidyverse.org

Source of tidyverse.org
HTML
172
star
25

design

Tidyverse design principles
R
157
star
26

hms

A simple class for storing time-of-day values
R
134
star
27

nycflights13

An R data package containing all out-bound flights from NYC in 2013 + useful metdata
R
116
star
28

tidyversedashboard

Tidyverse activity dashboard
R
69
star
29

tidy-dev-day

Tidyverse developer day
57
star
30

tidyeval

A guide to tidy evaluation
CSS
51
star
31

dsbox

Companion R package to Data Science Course in a Box
R
44
star
32

blob

A simple S3 class for representing BLOBs
R
42
star
33

tidytemplate

A pkgdown template for core tidyverse packages
SCSS
42
star
34

funs

Collection of low-level functions for working with vctrs
R
29
star
35

website-analytics

Web analytics for tidyverse + r-lib sites
R
28
star
36

code-review

23
star
37

tidyups

19
star
38

ggplot2-docs

ggplot2 documentation. Auto-generated from ggplot2 sources by pkgdown
HTML
9
star