Learn R Programming

tidytable (version 0.5.9)

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

Run this code
# NOT RUN {
test_df <- tidytable(
  x = c(1,2,3),
  y = c(4,5,6),
  z = c("a", "a", "b"))

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

Run the code above in your browser using DataLab