-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
character or factor in dataset #600
Comments
or @Melkiades do you think if it is possible to allow the different length in results? use "" as the place holders should be fine? |
related to #675 |
Just bumping this again @clarkliming - we really need to resolve this before more users start onboarding into this space as it's quite a fundamental |
I think Admiral/Oak should do it. At our stage, converting to factor will drop the missing levels and it will be difficult to track. |
how about we only allow "factor" ? @BFalquet maybe you can have a look and summarize
|
I think |
btw sorry for missing this out. The error seems unrelated to the discussion about |
thank you @Melkiades there are multiple reasons of this issue, but "character" can lead to this. there is even an extra intro like "converting something to factor". it happens when in each column the unique character values do not match and we want to have a summary table counting the occurence of each level. |
in rtables, both character and factor are allowed, however there are cases that lead to the following error like
This error message is not clear to the end users.
So the question here is: shall chevron always require "factor" used, or allow "character"?
option 1: chevron require factors be used. And in preprocessing convert all necessary variables to factor.
pro:
cons:
option 2: chevron require factors/character be used. In preprocessing convert some of the variables to factor (only if called with analyze_vars. Any other possibilities that this error could occur? @Melkiades )
pro:
cons:
option 3: chevron still allows characters (as this is supported by rtables), and rtables/tern may improve the handling of such situation
pros:
cons:
@Melkiades may I ask if there are any differences between
factor
andcharacter
in rtables?The text was updated successfully, but these errors were encountered: