Skip to content

Reduce repetition in geographic normalization #18

@k5cents

Description

@k5cents

When using normal_state() on a vector of 1 million state values, the vast majority will be valid abbreviations. The more efficient way is to normalize each unique invalid values.

  1. Look at unique() state values
  2. Ignore the good values
  3. Normalize only the bad ones
  4. Match normalized values back
  5. Return a single vector

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions