describe: Create a summary table for a data frame *[Experimental]*

View source: R/describe.R

describeR Documentation

Create a summary table for a data frame [Experimental]

Description

This function generates a summary table for a data frame, containing summary statistics for each variable in the data frame.

Usage

describe(data, digits = 4, t = TRUE, flextable = FALSE, ft_args = list(), ...)

Arguments

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 flextable function if flextable = TRUE (default is an empty list)

...

Other arguments to pass to the summary function

Value

A table containing summary statistics for each variable in the data frame

Examples

# Using summary
summary(cars)

# Using describe
describe(cars)
describe(cars, flextable = TRUE)

drdsdaniel/Dmisc documentation built on Oct. 23, 2024, 9:28 p.m.