## S3 method for class 'formula':
Desc(formula, data = parent.frame(), subset,
plotit = getOption("plotit", FALSE), ...)
lhs ~ rhs
where lhs
gives the data values and rhs the corresponding groups.formula
.
By default the variables are taken from environment(formula)
.FALSE
.+
, :
, *
, I()
, 1
and evaluates any function.
The left hand side and right hand side of the formula are evaluated the same way.
The variable pairs are processed in dependency of their classes by the functions DescFactFact
, DescNumFact
, DescFactNum
and DescNumNum
.Desc.logical
, Desc.factor
, Desc.ordered
, Desc.integer
,
Desc.numeric
, Desc.Date
, Desc.table
, Desc.data.frame
,
Desc.list
# univariate evaluation of temperature and driver
Desc(temperature + driver ~ 1, data=d.pizza, digits=1)
# temperature by driver
Desc(temperature ~ driver, data=d.pizza, digits=1)
# functions are evaluated
Desc(I(temperature^2) + sqrt(temperature) ~ interaction(driver, area), data=d.pizza, digits=1)
Run the code above in your browser using DataLab