The lab locations file is currently cleaned in multiple places throughout the codebase. While a primary function, clean_lab_data(), exists to handle this logic, additional ad hoc cleaning steps are implemented elsewhere, leading to duplication and potential inconsistencies.
This task involves:
- Identifying all locations where lab locations data is cleaned
- Consolidating cleaning logic into a single function (
clean_lab_data() or equivalent)
- Migrating this function into the shared data cleaning package tidypolis
- Updating analysis functions to use the main cleaned dataset
- Removing or deduplicating redundant cleaning steps from analysis code
The lab locations file is currently cleaned in multiple places throughout the codebase. While a primary function,
clean_lab_data(), exists to handle this logic, additional ad hoc cleaning steps are implemented elsewhere, leading to duplication and potential inconsistencies.This task involves:
clean_lab_data()or equivalent)