Learn R Programming

fcuk (version 0.2.0)

error_correction_propostion: Find closest object names

Description

Analyse a typo and suggests the closest names.

Usage

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

Value

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

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).

Examples

Run this code
error_correction_propostion("iri")
error_correction_propostion("view")

Run the code above in your browser using DataLab