View source: R/column_summaries.R
column_summaries | R Documentation |
This function takes a data.frame and returns a simple summary of the columns and their content as a data.frame.
column_summaries(df, dates_as_char = TRUE)
df |
a data.frame object |
dates_as_char |
logical() whether to treat date columns as character |
a tibble
with two columns, name
and column_details
.
The name column is the column name. The column_details
column is a list with five elements:
min: the minumum value (including for dates and character)
max: the maximum value (including for dates and character)
class: the class of the column
sample_values: up to five randomly-sampled values
data(iris) cs = column_summaries(iris) head(cs) str(cs$column_details)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.