Learn R Programming

fcuk (version 0.1.21)

error_correction_propostion: 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

Run this code
# NOT RUN {
error_correction_propostion("iri")
# }

Run the code above in your browser using DataLab