News for hackers. Stuff that matters.
Re:Create Page Layout Visualizations in R by extr on Monday August 28, 2017 @08:40PM (#15121318)
That's because you're comparing to base-r. The data.table way would be:

  dat[col_a == 'Good', .(Length = .N, Sum = sum(col_c)), col_b]
Re:Create Page Layout Visualizations in R by jcheng on Tuesday August 29, 2017 @01:09AM (#15122214)
That's all well and good for operations that are built into data.table; pipes can be used with anything that's a function call (like ggpage).
Re:Create Page Layout Visualizations in R by jhbadger on Tuesday August 29, 2017 @09:52AM (#15124241)
The problem with data.table is that in practice your data gets converted to something else when you pass it through packages -- many functions will return a data.frame or matrix, others in the Hadleyverse will return a tibble, and so on. So you have to constantly force your data back into a data table. R has so many datatypes that basically represent a spreadsheet/database table.
Re:Create Page Layout Visualizations in R by nerdponx on Tuesday August 29, 2017 @06:59AM (#15123427)
Data.table is great for SQL-style code but it imposes some annoying limitations, namely that the output is always coerced to a data.table.