-
Notifications
You must be signed in to change notification settings - Fork 52
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
bug in tukey_hsd
: wrong grouping labels when -
present
#19
Comments
Internally, in the turkey_hsd() function, the following R code is used to separate comparisons into groups: separate(comparison, into= c("group2", "group1"), sep = "-") Consequently, If group levels contain special chars, such as "-", a wrong result is returned. A quick fix that appears in my mind is to systematically apply the function Any better suggestion? |
This is a super-hacky solution I have adopted in my workflow but I feel like there might be a smarter way to do this- I am not sure how |
With make.names(), all invalid characters are translated to "." Examples: make.names(c("a b", "a-b", "10", "a;b")) Output:
|
Hmm, that will solve the issue but, as a user, I will not be happy that the names were changed by the function. Rarely a good idea since people might want to rely on their names of choices downstream in a script where this function might be used. |
fixed now, thanks! |
The grouping levels here are
a-0
andb-1
, but that's not what is returned:Created on 2019-12-23 by the reprex package (v0.3.0)
Session info
The text was updated successfully, but these errors were encountered: