Skip to content

Implement harmonize_df() #5

@jonthegeek

Description

@jonthegeek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions