change.dimensionOrder {hypercube} | R Documentation |
Changes the order of the dimensions in a given cube
Description
Changes the order of the dimensions in a given cube
Usage
change.dimensionOrder(x, dimensions)
Arguments
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. |
Value
Returns a Cube
object.
Author(s)
Michael Scholz michael.scholz@th-deg.de
See Also
Examples
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
[Package hypercube version 0.2.1 Index]