powered by
A pipe friendly way to get summary stats for exploratory data analysis
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, ... )
get_stats( x = NULL, func = NULL, exclude = NULL, na.rm = FALSE, na_action = NULL, ... )
The data for which stats are required
The nature of function to apply
What kind of data should be excluded? Use for example c("character","factor") to drop character and factor columns
Logical. Should NAs be removed. Defaults to FALSE.
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.
A data.frame object showing the requested stats
A convenient wrapper especially useful for get_mode
# NOT RUN { 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") # }
Run the code above in your browser using DataLab