
Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'table':
Desc(x, main = NULL, rfrq = NULL,
margins = c(1, 2), plotit = getOption("plotit", FALSE),
verbose = c("medium","low","high"), ...)
## S3 method for class 'matrix':
Desc(x, main = NULL, rfrq = NULL,
margins = c(1,2), plotit = getOption("plotit", FALSE),
verbose = c("medium","low","high"), ...)
1
or 0
. The first position is interpreted as total
percentages, the second as row percentages and the third as column percentages.
"011
" hence produces a table ouNULL
(none).PlotDesc.table
, which creates two mosaicplots. Default is FALSE
.c("medium","low","high")
, "medium" being the default. Can be abbreviated.PercTable
, allowing to set futher arguments like expected values etc.Desc.logical
, Desc.factor
, Desc.ordered
, Desc.integer
,
Desc.numeric
, Desc.Date
, Desc.table
, Desc.data.frame
,
Desc.formula
PercTable
Desc(table(d.pizza$driver, Weekday(d.pizza$date)), rfrq="100", plotit=TRUE)
tab <- as.matrix(read.table(text="549 212 54
93 124 54
233 78 33
119 42 13
225 41 46
455 12 7
402 132 153"
))
tab
# taciturn
Desc(tab, verbose="low")
# talkative
Desc(tab, verbose="high", expected=TRUE, res=TRUE)
# higher dimensional tables
Desc(Titanic)
Run the code above in your browser using DataLab