error_correction_propostion: Find closest object names

View source: R/function.R

error_correction_propostionR Documentation

Find closest object names

Description

Analyse a typo and suggests the closest names.

Usage

error_correction_propostion(asked_objet, method = "jaccard", n = 2)

Arguments

asked_objet

The R name producing an error.

method

Method for distance calculation. The default is "jaccard", see [stringdist::stringdist-metrics].

n

Number of corrections to suggest (default: 2).

Value

A character vector with the closest neighbors, or 'character(0)' if no valid input is provided.

Examples

error_correction_propostion("iri")
error_correction_propostion("view")

fcuk documentation built on Feb. 26, 2026, 5:06 p.m.