print.freq {prettyR}R Documentation

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,...)

Arguments

x a frequency table produced by freq
show.pc whether to display percentages as well as counts.
... 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.

Value

nil

Author(s)

Jim Lemon

See Also

freq

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)

[Package prettyR version 1.4 Index]