Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

print.freq

Display frequency table(s)


Description

Displays one or more frequency tables produced by freq.

Usage

## S3 method for class 'freq'
print(x,show.pc=TRUE,cum.pc=FALSE,show.total=FALSE,...)

Arguments

x

a frequency table produced by \link{freq}

show.pc

Whether to display percentages as well as counts.

cum.pc

Whether to display cumulative percentages.

show.total

Whether to display the total count of observations.

...

additional arguments passed to print.

Details

print.freq displays frequency tables produced by freq. If show.pc is TRUE and there is a value in the frequency table with the label "NA", an additional set of percentages ignoring that value will also be displayed. If show.total is TRUE, the total number of observations will be displayed.

Value

nil

Author(s)

Jim Lemon

See Also

Examples

test.df<-data.frame(A=c(sample(1:10,99,TRUE),NA),C=sample(LETTERS,100,TRUE))
 test.freq<-freq(test.df)
 print(test.freq,show.total=TRUE)

prettyR

Pretty Descriptive Stats

v2.2-3
GPL (>= 2)
Authors
Jim Lemon <drjimlemon@gmail.com>, Philippe Grosjean <phgrosjean@sciviews.org>
Initial release
2019-04-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.