Learn R Programming

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

maditr (version 0.8.3)

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

5,655

Version

0.8.3

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 2nd, 2022

Functions in maditr (0.8.3)

columns

Selects columns or rows from the data set
let_if

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

Convert data between wide and long forms.
coalesce

Return first non-missing element
copy

Copy an entire object
dt_count

Additional useful functions
query_if

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

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

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

Join two data.frames by common columns.
to_list

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

Look up values in dictionary.
text_expand

Evaluate expressions in curly brackets inside strings
reexports

Objects exported from other packages
to_long

Convert data to long or to wide form