View source: R/hai-skewed-features.R
hai_skewed_features | R Documentation |
Takes in a data.frame/tibble and returns a vector of names of the columns that are skewed.
hai_skewed_features(.data, .threshold = 0.6, .drop_keys = NULL)
.data |
The data.frame/tibble you are passing in. |
.threshold |
A level of skewness that indicates where you feel a column should be considered skewed. |
.drop_keys |
A c() character vector of columns you do not want passed to the function. |
Takes in a data.frame/tibble and returns a vector of names of the skewed
columns. There are two other parameters. The first is the .threshold
parameter
that is set to the level of skewness you want in order to consider the column
too skewed. The second is .drop_keys
, these are columns you don't want to be
considered for whatever reason in the skewness calculation.
A character vector of column names that are skewed.
Steven P. Sandeson II, MPH
hai_skewed_features(mtcars)
hai_skewed_features(mtcars, .drop_keys = c("mpg", "hp"))
hai_skewed_features(mtcars, .drop_keys = "hp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.