labelCheck: labelCheck

Description Usage Arguments Details Value See Also

View source: R/labelCheck.R

Description

helps fix spelling mistakes in the labels of a set of samples.

Usage

1
labelCheck(x, y, z, auto = FALSE)

Arguments

x

Vector of class character.

y

Vector of class character.

z

Vector of class character.

auto

Logical argument. Default is FALSE.

Details

If y and z are missing, the function will return the unique values among all the elements of y. Otherwise, the function will provide a corrected copy of y. Additionally, the function will count the number of records for each of the unique labels from which a plot will be built. The final output consists of:

If auto is set to TRUE, the user can ignore z to correct the existing labels. Instead, the user can provide all the potential cases through y. Then, for each element in x, the function will return the most similar element in y using the stringdist function.

Value

A character vector.

See Also

extractFields


fieldRS documentation built on July 8, 2020, 5:37 p.m.