Learn R Programming

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

maditr (version 0.7.4)

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

Description

Provides pipe-style interface for 'data.table'. Package 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

5,655

Version

0.7.4

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

July 29th, 2020

Functions in maditr (0.7.4)

maditr

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

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

Additional useful functions
to_list

Apply an expression to each element of a list or vector
dt_left_join

Join two data.frames by common columns.
dcast

Convert data between wide and long forms.
reexports

Objects exported from other packages
coalesce

Return first non-missing element
query_if

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

Look up values in dictionary.
let_if

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