Description Usage Arguments Details Value
Given a set of names, find the shortest prefix giving two unique classes (or fail if no such prefix exists). Return a lenth n character vector containing the classes.
1 |
names |
A set of sample names |
The output is run through make.names() which may add/remove characters, such that the resultant labels are valid variables names (to play nice with caret)
Character vector of labels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.