I am running the following code to summarize by INV_ITEM_ID column.
temptable <- temptable[, lapply(.SD, sum), by = INV_ITEM_ID,
.SDcols = c("Ext Sale", "Ext Total Cost", "CE100",
"CE110","CE120","QTY_SOLD","PACKSLIP_WHSL")]
The problem is that INV_ITEM_ID IS character type. I am needing to convert it to numeric type so that it will properly summarize the data.
How can I go about doing this. Currently it summarizes but does not leave distinct values.