I have been trying to convert a character column to a numeric column in my data.table, but I'm failing. It is too slow and stuck after a long time.
The regular way has been faster than the data.table way. Is it right?!
# Regular way base_placebo$municipio <- as.numeric(base_placebo$municipio) # Data table way base_placebo[, lapply(municipio, as.numeric),]
What I am missing?