Learn R Programming

⚠️There's a newer version (0.8.6) of this package.Take me there.

maditr (version 0.6.3)

Fast Data Aggregation, Modification, and Filtering with Pipes and 'data.table'

Description

Package provides pipe-style interface for 'data.table'. It preserves all 'data.table' features without significant impact on performance. 'let' and 'take' functions are simplified interfaces for most common data manipulation tasks. For example, you can write 'take(mtcars, mean(mpg), by = am)' for aggregation or 'let(mtcars, hp_wt = hp/wt, hp_wt_mpg = hp_wt/mpg)' for modification. Use 'take_if/let_if' for conditional aggregation/modification. 'query_if' function translates its arguments one-to-one to '[.data.table' method. Additionally there are some conveniences such as automatic 'data.frame' conversion to 'data.table'.

Copy Link

Version

Install

install.packages('maditr')

Monthly Downloads

6,390

Version

0.6.3

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Gregory Demin

Last Published

December 3rd, 2019

Functions in maditr (0.6.3)

dt_left_join

Join two data.frames by common columns.
coalesce

Return first non-missing element
let_if

Modify, aggregate, select or filter data.frame/data.table
query_if

One-to-one interface for data.table '[' method
dt_count

Additional useful functions
reexports

Objects exported from other packages
dcast

Convert data between wide and long forms.
dt_mutate

'dplyr'-like interface for data.table.
maditr

maditr: Pipe-Style Interface for 'data.table'