Closed GregorDeCillia closed 3 years ago
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")
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