Learn R Programming

aisdk (version 1.1.0)

find_closest_match: Find Closest Match

Description

Find the closest matching string using Levenshtein distance.

Usage

find_closest_match(target, candidates, max_distance = 3)

Value

The closest match, or NULL if none within max_distance.

Arguments

target

The target string to match.

candidates

A vector of candidate strings.

max_distance

Maximum allowed edit distance (default 3).