tidyverse

Easily install and load packages from the tidyverse

Github星跟蹤圖

tidyverse

CRAN
status
Travis build
status
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.

Installation

# Install from CRAN
install.packages("tidyverse")

# Or the development version from GitHub
# install.packages("devtools")
devtools::install_github("tidyverse/tidyverse")

Usage

library(tidyverse) will load the core tidyverse packages:

  • ggplot2, for data visualisation.
  • dplyr, for data manipulation.
  • tidyr, for data tidying.
  • readr, for data import.
  • purrr, for functional programming.
  • tibble, for tibbles, a modern
    re-imagining of data frames.
  • stringr, for strings.
  • forcats, for factors.

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

library(tidyverse)
#> ── Attaching packages ────────────────────────────────────────────────── tidyverse 1.2.1.9000 ──
#> ✓ ggplot2 3.2.1          ✓ purrr   0.3.3     
#> ✓ tibble  2.1.3          ✓ dplyr   0.8.3     
#> ✓ tidyr   1.0.0.9000     ✓ stringr 1.4.0     
#> ✓ readr   1.3.1          ✓ forcats 0.4.0
#> ── Conflicts ────────────────────────────────────────────────────────── tidyverse_conflicts() ──
#> x dplyr::filter() masks stats::filter()
#> x dplyr::lag()    masks stats::lag()

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() ──
#> x dplyr::filter() masks stats::filter()
#> x dplyr::lag()    masks stats::lag()
#> x MASS::select()  masks dplyr::select()

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)
#> Update now?
#> 
#> 1: Yes
#> 2: No

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:

  • 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.

主要指標

概覽
名稱與所有者tidyverse/tidyverse
主編程語言R
編程語言R (語言數: 2)
平台
許可證Other
所有者活动
創建於2016-09-06 13:29:39
推送於2025-06-18 20:15:42
最后一次提交
發布數9
最新版本名稱v2.0.0 (發布於 )
第一版名稱v1.0.0 (發布於 )
用户参与
星數1.7k
關注者數96
派生數292
提交數386
已啟用問題?
問題數260
打開的問題數8
拉請求數73
打開的拉請求數1
關閉的拉請求數22
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?