Learn R Programming

climatehealth (version 1.0.0)

suggest_column_match: Suggest a column name based on fuzzy matching

Description

Uses Jaro-Winkler distance to find the closest match to a misspelled or incorrect column name.

Usage

suggest_column_match(input, available, threshold = 0.3)

Value

The best matching column name, or NULL if no good match found.

Arguments

input

The column name that was not found

available

Character vector of available column names

threshold

Maximum distance threshold (0-1). Lower = stricter matching.