get_data_Stats: A pipe friendly way to get summary stats for exploratory data...

Description Usage Arguments Details Value Examples

Description

A pipe friendly way to get summary stats for exploratory data analysis

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
get_data_Stats(
  x = NULL,
  func = NULL,
  exclude = NULL,
  na.rm = FALSE,
  na_action = NULL,
  ...
)

get_stats(
  x = NULL,
  func = NULL,
  exclude = NULL,
  na.rm = FALSE,
  na_action = NULL,
  ...
)

Arguments

x

The data for which stats are required

func

The nature of function to apply

exclude

What kind of data should be excluded? Use for example c("character","factor") to drop character and factor columns

na.rm

Logical. Should NAs be removed. Defaults to FALSE.

na_action

If na.rm is set to TRUE, this uses na_replace to replace missing values.

...

Other arguments to na_replace See ?na_replace for details.

Details

A convenient wrapper especially useful for get_mode

Value

A data.frame object showing the requested stats

Examples

1
2
head(get_data_Stats(airquality,mean,na.rm = TRUE,na_action = "get_mode"))
get_stats(airquality,mean,"non_numeric",na.rm = TRUE,na_action = "get_mode")

manymodelr documentation built on Nov. 15, 2021, 5:07 p.m.