Movatterモバイル変換


[0]ホーム

URL:


dplyr 1.1.4

dplyr 1.1.3

dplyr 1.1.2

dplyr 1.1.1

dplyr 1.1.0

New features

Lifecycle changes

Breaking changes

Newly deprecated

Newly superseded

Newly stable

vctrs

Many of dplyr’s vector functions have been rewritten to make use ofthe vctrs package, bringing greater consistency and improvedperformance.

Minor improvements and bugfixes

dplyr 1.0.10

Hot patch release to resolve R CMD check failures.

dplyr 1.0.9

dplyr 1.0.8

dplyr 1.0.7

dplyr 1.0.6

dplyr 1.0.5

dplyr 1.0.4

dplyr 1.0.3

dplyr 1.0.2

dplyr 1.0.1

dplyr 1.0.0

Breaking changes

New features

Experimental features

across()

rowwise()

vctrs

Grouping

Lifecycle changes

Removed

Deprecated

Superseded

Questioning

Stable

Documentation improvements

Minor improvements and bugfixes

dplyr 0.8.5 (2020-03-07)

dplyr 0.8.4 (2020-01-30)

dplyr 0.8.3 (2019-07-04)

dplyr 0.8.2 (2019-06-28)

New functions

colwise changes

Hybrid evaluation changes

Minor changes

dplyr 0.8.1 (2019-05-14)

Breaking changes

New functions

Minor changes

dplyr 0.8.0.1 (2019-02-15)

dplyr 0.8.0 (2019-02-14)

Breaking changes

New functions

Major changes

Minor changes

Lifecycle

Changes to column wisefunctions

Performance

Internal

Documentation

Deprecated and defunctfunctions

dplyr 0.7.6

dplyr 0.7.5 (2018-04-14)

Breaking changes forpackage developers

Bug fixes

Major changes

Minor changes

Documentation

Error messages

Performance

Internal

dplyr 0.7.4

dplyr 0.7.3

dplyr 0.7.2

dplyr 0.7.1

dplyr 0.7.0

New data, functions, andfeatures

Deprecated and defunct

Databases

This version of dplyr includes some major changes to how databaseconnections work. By and large, you should be able to continue usingyour existing dplyr database code without modification, but there aretwo big changes that you should be aware of:

You can continue to usesrc_mysql(),src_postgres(), andsrc_sqlite(), but Irecommend a new style that makes the connection to DBI more clear:

library(dplyr)con<- DBI::dbConnect(RSQLite::SQLite(),":memory:")DBI::dbWriteTable(con,"mtcars", mtcars)mtcars2<-tbl(con,"mtcars")mtcars2

This is particularly useful if you want to perform non-SELECT queriesas you can do whatever you want withDBI::dbGetQuery() andDBI::dbExecute().

If you’ve implemented a database backend for dplyr, please read thebackendnews to see what’s changed from your perspective (not much). If youwant to ensure your package works with both the current and previousversion of dplyr, seewrap_dbplyr_obj() for helpers.

UTF-8

Colwise functions

Tidyeval

dplyr has a new approach to non-standard evaluation (NSE) calledtidyeval. It is described in detail invignette("programming") but, in brief, gives you theability to interpolate values in contexts where dplyr usually works withexpressions:

my_var <- quo(homeworld)starwars %>%  group_by(!!my_var) %>%  summarise_at(vars(height:mass), mean, na.rm = TRUE)

This means that the underscored version of each main verb is nolonger needed, and so these functions have been deprecated (but remainaround for backward compatibility).

Verbs

Joins

Select

Other

Combining and comparing

Vector functions

Other minor changes and bugfixes

dplyr 0.5.0

Breaking changes

Existing functions

Deprecated and defunctfunctions

New functions

Local backends

dtplyr

All data table related code has been separated out in to a new dtplyrpackage. This decouples the development of the data.table interface fromthe development of the dplyr package. If both data.table and dplyr areloaded, you’ll get a message reminding you to load dtplyr.

Tibble

Functions related to the creation and coercion oftbl_dfs, now live in their own package:tibble. Seevignette("tibble") for more details.

tbl_cube

Remote backends

SQLite

SQL translation

Internals

This version includes an almost total rewrite of how dplyr verbs aretranslated into SQL. Previously, I used a rather ad-hoc approach, whichtried to guess when a new subquery was needed. Unfortunately thisapproach was fraught with bugs, so in this version I’ve implemented amuch richer internal data model. Now there is a three step process:

  1. When applied to atbl_lazy, each dplyr verb capturesits inputs and stores in aop (short for operation)object.

  2. sql_build() iterates through the operations buildingto build up an object that represents a SQL query. These objects areconvenient for testing as they are lists, and are backendagnostics.

  3. sql_render() iterates through the queries andgenerates the SQL, using generics (likesql_select()) thatcan vary based on the backend.

In the short-term, this increased abstraction is likely to lead tosome minor performance decreases, but the chance of dplyr generatingcorrect SQL is much much higher. In the long-term, these abstractionswill make it possible to write a query optimiser/compiler in dplyr,which would make it possible to generate much more succinct queries.

If you have written a dplyr backend, you’ll need to make some minorchanges to your package:

There were two other tweaks to the exported API, but these are lesslikely to affect anyone.

Minor improvements and bugfixes

Single table verbs

Dual table verbs

Vector functions

dplyr 0.4.3

Improved encoding support

Until now, dplyr’s support for non-UTF8 encodings has been rathershaky. This release brings a number of improvement to fix theseproblems: it’s probably not perfect, but should be a lot better than thepreviously version. This includes fixes toarrange()(#1280),bind_rows() (#1265),distinct()(#1179), and joins (#1315).print.tbl_df() also received afix for strings with invalid encodings (#851).

Other minor improvementsand bug fixes

Databases

Hybrid evaluation

dplyr 0.4.2

This is a minor release containing fixes for a number of crashes andissues identified by R CMD CHECK. There is one new “feature”: dplyr nolonger complains about unrecognised attributes, and instead just copiesthem over to the output.

dplyr 0.4.1

dplyr 0.4.0

New features

New vignettes

Minor improvements

Bug fixes

dplyr 0.3.0.1

dplyr 0.3

New functions

Programming withdplyr (non-standard evaluation)

Removed and deprecatedfeatures

Minor improvements and bugfixes

Minor improvementsand bug fixes by backend

Databases

Data frames/tbl_df

Data tables

Cubes

dplyr 0.2

Piping

dplyr now imports%>% from magrittr (#330). Irecommend that you use this instead of%.% because it iseasier to type (since you can hold down the shift key) and is moreflexible. With you%>%, you can control which argumenton the RHS receives the LHS by using the pronoun.. Thismakes%>% more useful with base R functions because theydon’t always take the data frame as the first argument. For example youcould pipemtcars toxtabs() with:

mtcars %>% xtabs( ~ cyl + vs, data = .)

Thanks to@smbachefor the excellent magrittr package. dplyr only provides%>% from magrittr, but it contains many other usefulfunctions. To use them, loadmagrittr explicitly:library(magrittr). For more details, seevignette("magrittr").

%.% will be deprecated in a future version of dplyr, butit won’t happen for a while. I’ve also deprecatedchain()to encourage a single style of dplyr usage: please use%>% instead.

Do

do() has been completely overhauled. There are now twoways to use it, either with multiple named arguments or a single unnamedarguments.group_by() +do() is equivalent toplyr::dlply, except it always returns a data frame.

If you use named arguments, each argument becomes a list-variable inthe output. A list-variable can contain any arbitrary R object so it’sparticularly well suited for storing models.

library(dplyr)models <- mtcars %>% group_by(cyl) %>% do(lm = lm(mpg ~ wt, data = .))models %>% summarise(rsq = summary(lm)$r.squared)

If you use an unnamed argument, the result should be a data frame.This allows you to apply arbitrary functions to each group.

mtcars %>% group_by(cyl) %>% do(head(., 1))

Note the use of the. pronoun to refer to the data inthe current group.

do() also has an automatic progress bar. It appears ifthe computation takes longer than 5 seconds and lets you know(approximately) how much longer the job will take to complete.

New verbs

dplyr 0.2 adds three new verbs:

Minor improvements

Bug fixes

dplyr 0.1.3

Bug fixes

dplyr 0.1.2

New features

Bug fixes

dplyr 0.1.1

Improvements

Bug fixes


[8]ページ先頭

©2009-2025 Movatter.jp