Learn R Programming

mariposa (version 0.7.3)

print.frequency: Print method for frequency objects (compact)

Description

Compact print method for objects of class "frequency". Shows one line per variable (and group combination) with the number of categories, the valid N, and the missing count.

For the full frequency tables (counts, percentages, cumulative percentages), use summary().

Usage

# S3 method for frequency
print(x, digits = 3, ...)

Value

Invisibly returns the input object x.

Arguments

x

An object of class "frequency"

digits

Number of decimal places to display (default: 3)

...

Additional arguments passed to print

Examples

Run this code
result <- frequency(survey_data, gender)
result              # compact overview
summary(result)     # full frequency tables

Run the code above in your browser using DataLab