Hi, I have a code
proxy <-"Var1"
data[,.
(
count = .N
,summm = sum(PREMIUM)
),
by = c(proxy,'var2')][order(Var2, proxy)]
How do I use the same proxy in "by" and "order"?
the "by" requires variable to come with quotation marks, and "order" requires a variable without quotation marks.
Treid the proxy <-noquote("Var1")
, but data.table also complains, which is hard to understand why.
Thanks