I am trying to run the following piece of code. Whenever I try to run the code I get the following error: Error in eval(expr, envir, enclos) : could not find function
Error in eval(expr, envir, enclos) : could not find function
See this SO question.
Make mtcarsDT as data.table object by doing
mtcarsDT
data.table
mtcarsDT <- setDT(mtcars) and proceed from there.
mtcarsDT <- setDT(mtcars)
Hope it works!