When a factor variable can take on only one value, importData creates a dummy of class "list" which cannot be handled by subsequent stremr routines (Error message is produced).
Stremr should catch the problem, print a warning and create a single dummy variable of class "integer".
Should be working correctly now. Added a check for number of levels and if a factor has only two or fewer levels, it is simply converted to an integer.
When a factor variable can take on only one value, importData creates a dummy of class "list" which cannot be handled by subsequent stremr routines (Error message is produced).
Stremr should catch the problem, print a warning and create a single dummy variable of class "integer".