using GLM, TypedTables, CategoricalArrays
table1= Table( Value=[1.2,1.3,1.4,2.1,2.2,2.3],
Group=categorical(["a","a","a","b","b","b"]) )
table2= Table( Group=table1.Group, Value=table1.Value )
lm( @formula( Value ~ Group ), table1 ) # this works as expected
lm( @formula( Value ~ Group ), table2 ) # this is an error, ends up trying to convert a String to a Float64
The same thing happens with DataFrames instead of TypedTables.
The same thing happens with DataFrames instead of TypedTables.
My version details: