The as_categorical needs options for deciding the numerical order of the parameters. If a dataset changes and a user adds/removes a class the numbers may drastically change.
The parameters should also be sorted in alphabetical order. Currently a category may receives a number depending on the Lua table hash function that may be unpredictable.
The
as_categorical
needs options for deciding the numerical order of the parameters. If a dataset changes and a user adds/removes a class the numbers may drastically change.The parameters should also be sorted in alphabetical order. Currently a category may receives a number depending on the Lua table hash function that may be unpredictable.