How to change the type of a variable for a loaded table?

kai
Sat, 04 Jan 2020 18:33:02 +0000
Statistics

I’m trying to use JuliaDB to load tables and then use MixedModels to fit models.

The MixedModels package requires the clustering variable “id” to be categorical, but in my dataset “id” is integer.

So my question is, how can I change the type of “id” to categorical after loading the table? One solution is to convert the table to a DataFrame and then change the type, but I’m sure there are better solutions.

12 posts - 4 participants