This function will be the main entry point for harmonizing a data frame. It orchestrates the process by applying column-wise mapping rules and validating the result against a full data frame specification.
The signature should be:
harmonize_df(.data, ..., .spec = NULL)
MVP Behavior:
- It will take a source data frame (
.data) and an optional specification object (.spec).
- It will use data-masking to evaluate the mapping expressions supplied in
....
- If a
.spec is provided, harmonize_df() will use it to validate the final data frame structure after all individual mappings are complete.
- It should be able to automatically pass the relevant parts of its main
.spec to the individual harmonize_*() calls inside ... if they don't have their own .spec defined.
This function will be the main entry point for harmonizing a data frame. It orchestrates the process by applying column-wise mapping rules and validating the result against a full data frame specification.
The signature should be:
MVP Behavior:
.data) and an optional specification object (.spec)......specis provided,harmonize_df()will use it to validate the final data frame structure after all individual mappings are complete..specto the individualharmonize_*()calls inside...if they don't have their own.specdefined.