3 ms·
Do you use data.table syntax, or do you use dplyr with the tbl_dt class to abstract that away? I was a data.table acolyte for years, but after being forced to
by claytonjy 10y ago
Do you use data.table syntax, or do you use dplyr with the tbl_dt class to abstract that away?
I was a data.table acolyte for years, but after being forced to learn dplyr I can't imagine going back. I'm hoping if I need update-by-reference in the future I can use tbl_dt but I haven't played with it yet.
- nerdponx 10y agoIf I'm using them together, I'll start off a pipeline with a big DT expression, then pipe it through a few dplyr verbs as a kind of "post processing." I find that some tasks are frustrating with one package but easy with the other, so more frequently I just have some "dplyr lines" and some "data.table lines" in my scripts. And the compatibility between the two has improved a lot, so you don't get so many "invalid selref" warnings and unexpected behavior when you combine them in pipelines