find_closest_match: Find Closest Match

View source: R/tool.R

find_closest_matchR Documentation

Find Closest Match

Description

Find the closest matching string using Levenshtein distance.

Usage

find_closest_match(target, candidates, max_distance = 3)

Arguments

target

The target string to match.

candidates

A vector of candidate strings.

max_distance

Maximum allowed edit distance (default 3).

Value

The closest match, or NULL if none within max_distance.


aisdk documentation built on May 29, 2026, 9:07 a.m.