xtabs
drAggregate(data, formula, by = NULL, output = NULL, preTransFn = NULL, maxUnique = NULL, params = NULL, packages = NULL, control = NULL)formulaformula object with the cross-classifying variables (separated by +) on the right hand side (or an object which can be coerced to a formula). Interactions are not allowed. On the left hand side, one may optionally give a variable name in the data representing counts; in the latter case, the columns are interpreted as corresponding to the levels of a variable. This is useful if the data have already been tabulated.by being specified (see localDiskConn, hdfsConn). If NULL (default), output will be an in-memory "ddo" object.addTransform prior to calling divide.NULL, it is ignored. If a positive number, only the top and bottom maxUnique tabulations by frequency are kept.fn (most should be taken care of automatically such that this is rarely necessary to specify)rhwatch in RHIPE) - see rhipeControl and localDiskControlxtabs, updateAttributes
drAggregate(Sepal.Length ~ Species, data = ddf(iris))
Run the code above in your browser using DataLab