-
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
Allow recoding of sc_data
objects
#17
Comments
Some further options that are more specific to our internal needs ## set the color used for a level in visualizations
x$recode$color(code_field, code_level, hex_color)
## modify how time values are parsed ???
x$recode$parser(code_field, time_format = "YYYY-Q") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add functionalities that allow modifications of labels and similar. Define a new R6 class and put an instance into
x$recode
.changes to public methods
Implementation
All modifications should directly overwrite
x$meta
andx$fields(i)
. The functionality should be bilingual, i.e. it should be possible to define german and english labels.It would probably be useful to add extra columns
visible
andorder
inx$field(i)
to store this part of the "recode state". We could also just store them in$private$p_fields[[i]]
and omit them in the active fieldpluralization
We could also add "pluralized" versions that implement the recodes such as
The text was updated successfully, but these errors were encountered: