find_skewness: Finding skewed variables

Description Usage Arguments Value See Also Examples

Description

Find the numerical variable that skewed variable that inherits the data.frame or data.frame.

Usage

1
find_skewness(.data, index = TRUE, value = FALSE, thres = NULL)

Arguments

.data

a data.frame or a tbl_df.

index

logical. When representing the information of a skewed variable, specify whether or not the variable is represented by an index. Returns an index if TRUE or a variable names if FALSE.

value

logical. If TRUE, returns the skewness value in the individual variable.

thres

Returns a skewness threshold value that has an absolute skewness greater than thres. The default is NULL to ignore the threshold. but, If value = TRUE, default to 0.5.

Value

Information on variables including skewness.

See Also

find_na, find_outliers.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
find_skewness(heartfailure)

find_skewness(heartfailure, index = FALSE)

find_skewness(heartfailure, thres = 0.1)

find_skewness(heartfailure, value = TRUE)

find_skewness(heartfailure, value = TRUE, thres = 0.1)

## using dplyr -------------------------------------
library(dplyr)

# Perform simple data quality diagnosis of skewed variables
heartfailure %>%
  select(find_skewness(.)) %>%
  diagnose()

## End(Not run)

bit2r/kodlookr documentation built on Dec. 19, 2021, 9:49 a.m.