dplyr on data.table, am I really using data.table?

前端 未结 4 1543
梦谈多话
梦谈多话 2020-11-28 18:25

If I use dplyr syntax on top of a datatable, do I get all the speed benefits of datatable while still using the syntax of dplyr? In other w

4条回答
  •  醉梦人生
    2020-11-28 18:43

    You can use dtplyr now, which is part of the tidyverse. It allows you to use dplyr style statements as usual, but utilizes lazy evaluation and translates your statements to data.table code under the hood. The overhead in translation is minimal, but you derive all, if not, most of the benefits of data.table. More details at the official git repo here and the tidyverse page.

提交回复
热议问题