So I have been trying to manipulate a dataset using data.table. Like in STATA, I wanted to categorise my factors using their values and not labels. So far, I have not been able