Learn R Programming

extdplyr is an extension package for data manipulation based on dplyr and tidyr.

If dplyr is a grammar for data manipulation, extdplyr is like a short paragraph written in dplyr. extdplyr extends dplyr and tidyr verbs to some common "routines" that manipulate datasets. It uses a similar interface and preserves all features from the underlying dplyr functions like their fast performance and a variety of data backends.

Motivation

dplyr is powerful but also restrained in that it aims to provide the most important tools, but not to suit every needs. After several years of extensive use of dplyr, I found that some combinations of dplyr verbs become too frequent in my code that I wanted to extract them as functions. This is the origin of those routines in extdplyr.

Also there are some cases where the operations don't conform to dplyr's rules. Naturally one wouldn't expect these operations to be included into dplyr, but they can be implemented here for the occasional use.

Copy Link

Version

Install

install.packages('extdplyr')

Monthly Downloads

23

Version

0.1.5

License

MIT + file LICENSE

Maintainer

Yuchen Wang

Last Published

April 20th, 2020

Functions in extdplyr (0.1.5)

reexports

Objects exported from other packages
ind_to_char

Convert indicator data.frame to character/factor.
check_missing

Check missing rate in variables.
grp_routine

Mutate a character/factor based on conditions.
pct_routine

Calculate percentage by group.
common_params

Common parameters across routines