A one-function-call that produces a compact yet full of information summary of a data.frame, presented in a DataTables (via DT)

abridge_df(df, file = NULL, ...)

Arguments

df

data.frame-like object to summarize

file

path to file to save the htmlwidget

...

passed to htmlwidgets::saveWidget

Value

a DT datatables htmlwidget object

Examples

abridge_df(mtcars)
abridge_df(ggplot2::diamonds)
nlsw88 <- haven::read_dta("http://www.stata-press.com/data/r15/nlsw88.dta") abridge_df(nlsw88)
abridge_df(forcats::gss_cat)