Learn R Programming

maditr (version 0.8.6)

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. Additionally there are some conveniences such as automatic 'data.frame' conversion to 'data.table'.

Copy Link

Version

Install

install.packages('maditr')

Monthly Downloads

4,638

Version

0.8.6

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Gregory Demin

Last Published

August 30th, 2025

Functions in maditr (0.8.6)

dt_count

Additional useful functions
dt_mutate

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

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

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

Return first non-missing element
copy

Copy an entire object
columns

Selects columns or rows from the data set
dt_left_join

Join two data.frames by common columns.
dcast

Convert data between wide and long forms.
maditr-package

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

Evaluate expressions in curly brackets inside strings
vlookup

Look up values in dictionary.
reexports

Objects exported from other packages
to_long

Convert data to long or to wide form
to_list

Apply an expression to each element of a list or vector