Usage
## S3 method for class 'factor':
Desc(x, main = NULL, ord = c("desc", "asc", "name", "level"),
maxrows = 12, digits = NULL, plotit = getOption("plotit", FALSE), ...)
## S3 method for class 'ordered':
Desc(x, main = NULL, ...)
## S3 method for class 'character':
Desc(x, main = NULL, ...)
Arguments
x
a single factor, an ordered factor or a character vector to be described.
main
the caption of the output. If this is set to NULL (which is the default) the name of the factor and its class will be printed. Use NA
if no caption should be printed at all.
ord
the order for the frequency table. Factors (and character vectors) are by default orderd by their descending
frequencies, ordered factors by their natural order. If a character e.g. should be ordered alphabetical, set ord to name
.
maxrows
numeric value. Defines the maximum number of rows to be reported. For factors with lots of levels it is often not interesting to see
all the levels. Default is hence set to 12 most frequent ones (resp. the first ones if ord
is set to
digits
integer. With how many digits shoud the relative frequencies be formatted? Default is 1.
plotit
boolean. Should a plot be created? Default is FALSE
. The factor is plotted with PlotDesc.factor
. ...
further argument to be passed to methods. For ordered factors and character vectors they are passed to Desc.factor
.