knitr::opts_chunk$set( collapse = TRUE, error = TRUE, comment = "#>" )
library(rubix) data("mtcars")
Summarize_
functions rapidly survey the depth and breadth of a dataframe. The general use cases for this function family is to analyze data for variability from multiple angles to bucket values into broader categories.
summarize_variables(mtcars, incl_num_calc = FALSE)
Summary functions include:
1. Total and distinct counts
2. Counts for NA (ie.
3. Unique values found within the particular variable in both a pipe-separated string .
Additional metrics can be derived from variables that contain numeric data. The summarize_variables()
function either takes variables as arguments or selects for variables of numeric, integer, or double R classes and calculates summary statistics with both na.rm = FALSE (all _NA suffixed outputs) and na.rm = TRUE parameters.
summarize_variables(data = mtcars, incl_num_calc = TRUE)
The value_count()
function returns all counts for the unique values for each variable.
value_count(data = mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.