Learn R Programming

mariposa (version 0.7.3)

summary.frequency: Summary method for frequency results

Description

Creates a summary object that produces detailed output when printed, including the per-variable summary statistics line (total N, valid N, mean, SD, skewness) and the full ASCII frequency tables with counts, raw/valid/cumulative percentages, and missing value breakdowns.

Usage

# S3 method for frequency
summary(object, frequency_table = TRUE, summary_stats = TRUE, digits = 2, ...)

Value

A summary.frequency object.

Arguments

object

A frequency result object.

frequency_table

Logical. Show the frequency tables? (Default: TRUE)

summary_stats

Logical. Show the per-variable summary statistics line? (Default: TRUE)

digits

Number of decimal places for percentages and summary statistics (Default: 2).

...

Additional arguments (not used).

See Also

frequency for the main analysis function.

Examples

Run this code
result <- frequency(survey_data, gender)
summary(result)
summary(result, summary_stats = FALSE)

Run the code above in your browser using DataLab