"level"
.
Character vectors are treated as unordered factors.## S3 method for class 'factor':
Desc(x, main = NULL, ord = c("desc", "asc", "name", "level"),
maxrows = 12, digits = 3, plotit = getOption("plotit", FALSE), ...)
## S3 method for class 'ordered':
Desc(x, main = NULL, ...)
## S3 method for class 'character':
Desc(x, main = NULL, ...)
NA
if no caption should be printed at all.name
.ord
is set to FALSE
. The factor is plotted with PlotDesc.factor
.Desc.factor
.Freq
"level"
instead of "desc"
in the factor case.Desc
, PlotDesc
# unordered factor
Desc(d.diamonds$colour)
# ordered factor
Desc(d.diamonds$clarity)
# just the 5 first groups of the factor
Desc(d.diamonds$colour, maxrows = 5)
# just as many rows, as the most frequent 80% of the factor levels use
Desc(d.diamonds$colour, maxrows = 0.8)
Run the code above in your browser using DataLab