Description Usage Arguments Details Value See Also
helps fix spelling mistakes in the labels of a set of samples.
1 | labelCheck(x, y, z, auto = FALSE)
|
x |
Vector of class character. |
y |
Vector of class character. |
z |
Vector of class character. |
auto |
Logical argument. Default is FALSE. |
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:
unique.labels - Unique labels in the output.
corrected.labels - Corrected labels in x.
label.count - Count of occurrences in unique.labels per each element in x.
label.count.plot - Plot of label.count.
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.
A character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.