Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of columns in table triggers error #498

Open
LinusSch opened this issue Sep 6, 2022 · 0 comments
Open

Order of columns in table triggers error #498

LinusSch opened this issue Sep 6, 2022 · 0 comments

Comments

@LinusSch
Copy link

LinusSch commented Sep 6, 2022

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.

My version details:

  [324d7699] CategoricalArrays v0.10.6
  [a93c6f00] DataFrames v1.3.4
  [85a47980] Dictionaries v0.3.24
  [38e38edf] GLM v1.8.0
  [03a91e81] SplitApplyCombine v1.2.2
  [9d95f2ec] TypedTables v1.4.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant