describe_df | R Documentation |
Function to return a dataframe with descriptives for a target dataframe.
Each row in the returned dataframe will correspond to a column in the original dataframe.
Respects grouped dataframes a la dplyr
.
describe_df(data, digits = NULL)
data |
Dataframe. |
digits |
Optional argument to round output to a specified number of digits. |
Note that the count in the distinct
column excludes values of NA
.
describe_df(mtcars)
describe_df(mtcars, 2)
describe_df(mice::boys)
# NAs are excluded from the count of 'distinct'
describe_df(data.frame(var1 = c(0, 1, 1, 0, NA)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.