Description Usage Arguments Value Author(s) See Also Examples
Changes the order of the dimensions in a given cube
1 | change.dimensionOrder(x, dimensions)
|
x |
Hypercube for which the dimensions should be re-ordered. |
dimensions |
Vector of dimensions. The order of the dimensions in this vector defines the order of the dimensions in the cube. |
Returns a Cube
object.
Michael Scholz michael.scholz@th-deg.de
1 2 3 4 5 | data("sales")
cube = generateCube(sales, columns = list(time = c("month", "year"),
location = c("state"), product = "product"), valueColumn = "amount")
cube = change.dimensionOrder(cube, dimensions = c("product", "month", "year", "state"))
cube
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.