Ooh, data.table fans on #rstats, I was not aware of this: https://stackoverflow.com/a/77847080.

You can write the following in R >= 4.3 (copied from comment) for a formatted chain w/out a performance hit:

dt |>
_[do this] |>
_[then this] |>
_[and finally this]

I love dt, but stylers don't play nice

Comments