describe | R Documentation |
This function generates a summary table for a data frame, containing summary statistics for each variable in the data frame.
describe(data, digits = 4, t = TRUE, flextable = FALSE, ft_args = list(), ...)
data |
A data frame containing the data to be summarized |
digits |
The number of 0digits to display in the summary table (default is 4) |
t |
If TRUE, the table will be transposed (default is TRUE) |
flextable |
If TRUE, the table will be converted to a simple flextable (default is FALSE) |
ft_args |
A list of additional arguments to pass to the |
... |
Other arguments to pass to the |
A table containing summary statistics for each variable in the data frame
# Using summary
summary(cars)
# Using describe
describe(cars)
describe(cars, flextable = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.