Data Table
Hello world
install.packages("data.table")
library(data.table)
years = c(2012, 2013)
average = c(250, 275)
table.values <- data.table(year = years, averageBeerConsumption = average)tables()Subsetting rows.
table.values[2]
table.values[c(1,2)]Calculate values from columns
Return table of values for a column
Add new column
Multiple operations.
Plyr like operations
Grouping by
Count number of occurrences
Keys
Fast reading
Last updated