Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dt

Pipeable data.table call


Description

Pipeable data.table call

Note: This function does not use data.table's modify-by-reference

Usage

dt(.df, ...)

Arguments

.df

A data.frame or data.table

...

Arguments passed to data.table call. See ?data.table::[.data.table

Examples

test_df <- data.table(
  x = 1:3,
  y = 4:5,
  z = c("a", "a", "b")
)

test_df %>%
  dt(, double_x := x * 2) %>%
  dt(order(-double_x))

tidytable

Tidy Interface to 'data.table'

v0.6.1
MIT + file LICENSE
Authors
Mark Fairbanks [aut, cre], Abdessabour Moutik [ctb], Matt Carlson [ctb], Ivan Leung [ctb], Ross Kennedy [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.