DYM: DYM

Description Usage Arguments Examples

View source: R/DYM.R

Description

You might mistype an object name. The package suggests the correct spell of the object you meant.

If the function is called after an error of 'object not found', the function tries to tell you the name of the correct name that you meant.

Usage

1
DYM(threshold = 2, max_n = 10, ignoreCase = FALSE)

Arguments

threshold

The maximum distance between the misspell (x) and the correct answer (in name).

max_n

An integer limiting the number of results. Passed to head.

ignoreCase

A logical value indicating whether differences in case should be ignored when matching. Passed to adist.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
options(error = DYM::DYM())
logg(10)

# For fewer or more suggestions, change threshold, max_n and ignoreCase
options(error = DYM::DYM(threshold = 3, max_n = 25, ignoreCase = TRUE))
logg(10)

## End(Not run)

DYM documentation built on May 2, 2019, 3:37 p.m.