Description Usage Arguments Value Author(s) See Also Examples
This function removes aggregations from a hypercube. The cube itself will not be changed. The aggregation only affect the data that will be shown when printing the cube.
1 | remove.aggregation(x, dimensions = NA, last = FALSE)
|
x |
Hypercube from which the aggregation will be removed. |
dimensions |
A vector of dimensions for which the aggregations will be removed. |
last |
Should the last aggregation be removed? If this parameter is set TRUE, the dimension vector will be ignored. |
Returns a Cube
object with the added aggregation.
Michael Scholz michael.scholz@th-deg.de
Cube
add.aggregation
remove.selection
1 2 3 4 5 6 7 8 9 | data("sales")
cube = generateCube(sales, columns = list(time = c("month", "year"),
location = c("state"), product = "product"), valueColumn = "amount")
cube = add.aggregation(cube, dimensions = c("month", "year"), fun = "sum")
cube
cube = add.aggregation(cube, dimensions = "year", fun = "sum")
cube
cube = remove.aggregation(cube, dimensions = "year")
cube
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.