Skip to content
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

New function to add labels to variables #4

Closed
4 tasks
rafapereirabr opened this issue Aug 26, 2023 · 0 comments
Closed
4 tasks

New function to add labels to variables #4

rafapereirabr opened this issue Aug 26, 2023 · 0 comments

Comments

@rafapereirabr
Copy link
Member

Initially, here's the idea. One function per data set

  • add_labels_households(arrw, lang = c('PT', 'EN'))
  • add_labels_population(arrw, lang = c('PT', 'EN'))
  • add_labels_mortality(arrw, lang = c('PT', 'EN'))

Depending on how it goes, it might be better to have a single function that applies to different data sets. E.g.

  • add_labels(arrw, dataset = c('households', 'population', 'mortality'), lang = c('PT', 'EN'))

The downside of this first approach is having too many functions, code repetition because of some variables that are in common between datasets. Meanwhile, the downside of the second approach is that the function will be too big, and harder to manage.

@rafapereirabr rafapereirabr changed the title New function to add labels to household variables New function to add labels variables Aug 26, 2023
@rafapereirabr rafapereirabr changed the title New function to add labels variables New function to add labels to variables Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant