If the column is numeric or a date this function will return the min, Q1, median (Q2), Q3, max, mean, sd (only for numeric and interger), and count of missing data. If data type is of character or factor, a count of the character will be returned alonged with p (percent of column, or group if dplyr::group_by() is passed) and a formatted p for a clean presentation in plots and/or tables.

summarize_variable(.data, .col, round = TRUE)

Arguments

.data

A tbl.

.col

A numeric column that will be summarized

round

A logical. If TRUE, the default, it will round all decimals to the hundredths position.

Value

A summarized tbl