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 two 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-metrics.

n

number of corrections to suggest.

Value

a character vector with the closest neighbors

Examples

error_correction_propostion("iri")

ThinkR-open/fcuk documentation built on Oct. 12, 2023, 10:09 p.m.