get_data_Stats {manymodelr}R Documentation

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

Description

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

Usage

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

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")

[Package manymodelr version 0.3.7 Index]