error_correction_propostion: Find closest object names

Description Usage Arguments Value Examples

View source: R/function.R

Description

Analyse a typo and suggests the two closest names.

Usage

1
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

1

fcuk documentation built on May 1, 2019, 10:22 p.m.