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

Update read_watersurfaces for version 2024 #191

Closed
wants to merge 4 commits into from

Conversation

cecileherr
Copy link
Collaborator

A few preliminary checks in preprocessing>miscellaneous>watersurfaces.Rmd :
watersurfaces.zip

Here are the most important remarks/needed corrections for this new version 2024:

  • there is a wrong WVLC code (“d”) in de Kleiputten van Heist (Palingpot): not corrected since it is the raw source
  • new variable wfd_type_alternative: added (and made optional since it is not present in all versions)
  • variable dropped hyla_code: made optional (since it is not present in all versions)
  • all the empty cells are imported as "" (empty string) instead of NA: converted to NA

Nice to try in the future (maybe we could add this as issue?)
What is the best (quickest/most readable) way to handle the fact that there are different structures/different fields/different errors to correct in the different versions?
Should we use if then structures or use optional clauses (such as matches, any_of, across + where, ...)?

florisvdh and others added 4 commits October 7, 2024 12:30
- drop hyla_code
- add wfd_type_alternative
- add wfd_type_alt_name
- include water_level_management
- add CFe in list water types
- use na_if for empty cells ("")
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

Successfully merging this pull request may close these issues.

2 participants