-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Label dictionaries #5178
Labels
feature
a feature request or enhancement
Comments
@teunbrand This feature will be very useful! It will allow me to not only to simplify the code in 'ggspectra' but, more importantly, easy my plans to implement support for multiple languages. |
I'm glad you can see the potential! If you want to give it a spin before it hits the main branch, you can use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently saw this tweet, which I thought was a nice suggestion, because it allows you to reuse labels without falling victims to typos and such. It still required a lot of manual management though.
Then, I realised we have several related issues/feature requests already, for example #4631 or #4313. However, I think having a label dictionary is perhaps a more elegant approach than hardcoding a path to retrieve labels from attributes (see also #4631 (comment)).
For the vanilla case, I think it should work something like this:
Created on 2023-02-05 with reprex v2.0.2
However, for the {Hmisc/tinylabels/labelled/sjlabelled} cases, we might be able to specify
dict = derive()
(or similar) to specifically instruct to lookup label names in the data.The text was updated successfully, but these errors were encountered: