ast | R Documentation |
From lobstr package, but rlang independent
ast(x)
x |
dt <- data.table::data.table(a = 1:4, b = 5:8, wup = "wupwup", ID = c(1,1,2,2)) dt[a == 1 & b == 6,`:=`(wup = "bla", b = 2), by = "ID"] x <- 'dt[a == 1 & b == 6,`:=`(wup = "bla", b = 2), by = "ID"]' ast(x) x <- 'dt[a == 1 & b == 6, `:=`(wup = "bla", b = 2), by = "ID"]' ast(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.