Description Usage Arguments Value Examples
View source: R/expl_categorical.R
When given a dataframe object, this function will return a dataframe object with 1 row per level for variable sorted alphabetically.
It will provide: how many rows contain that level and the percentage of that value for that variable.
1 | expl_categorical(df, char.level = 20, num.level = 20)
|
df |
dataframe - train set. |
char.level |
Numeric - exclude character|factor columns if levels > char.level |
num.level |
Numeric - exclude numeric|integer columns if levels > num.level (NULL discards numeric columns) |
a dataframe containing the columns: var [Character]: a character variable level [Character]: a level for that character variable class [Character]: what class is the variable n [Integer]: count of that level perc [Numeric]: percentage of that level
no character columns: "no character or factors" too many levels in all character columns: "no columns with fewer levels than char.level"
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.