library(data.table) dt <- as.data.table(mtcars) dt[, mpg := 3] dt[, `:=`(gear = 4)] dt[, `:=`(gear = mean(gear)), by = .(vs, am)]
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.