Learn R Programming

mariposa (version 0.7.3)

summary.describe: Summary method for describe results

Description

Creates a summary object that produces the descriptive statistics table when printed. Since describe() output is already a summary table by nature, the printed content matches print(); the summary layer adds the statistics section toggle and the digits formatting option for consistency with the other analysis functions.

Usage

# S3 method for describe
summary(object, statistics = TRUE, digits = 3, ...)

Value

A summary.describe object.

Arguments

object

A describe result object.

statistics

Logical. Show the descriptive statistics table? (Default: TRUE)

digits

Number of decimal places for formatting (Default: 3).

...

Additional arguments (not used).

See Also

describe for the main analysis function.

Examples

Run this code
result <- describe(survey_data, age, income)
summary(result)
summary(result, digits = 2)

Run the code above in your browser using DataLab