Learn R Programming

maditr (version 0.8.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. 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.4

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 11th, 2024

Functions in maditr (0.8.4)

vlookup

Look up values in dictionary.
to_long

Convert data to long or to wide form
reexports

Objects exported from other packages
text_expand

Evaluate expressions in curly brackets inside strings
to_list

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

Convert data between wide and long forms.
query_if

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

Join two data.frames by common columns.
copy

Copy an entire object
columns

Selects columns or rows from the data set
dt_mutate

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

Return first non-missing element
dt_count

Additional useful functions
maditr-package

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

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