Usage
## S3 method for class 'factor':
Desc(x, xname = NULL, ord = c("desc", "asc", "name", "level"),
maxrows = 12, digits = 3, plotit = FALSE, ...)
## S3 method for class 'ordered':
Desc(x, xname = NULL, ...)
## S3 method for class 'character':
Desc(x, xname = NULL, ...)
Arguments
x
a single factor, an ordered factor or a character vector to be described.
xname
the caption of the output.
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.
maxrows
numeric. 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 12 (most frequent ones).
If maxrows < 1 then just as many rows, as the maxrows% most frequent fac
digits
integer. With how many digits shoud the relative frequencies be formatted? Default is 3.
plotit
boolean. Should a plot be created? The factor is plotted with PlotDesc.factor
. Default is FALSE
. ...
further argument to be passed to methods. For ordered factors and character vectors they are passed to Desc.factor
.