change.dimensionOrder: Changes the order of the dimensions in a given cube

Description Usage Arguments Value Author(s) See Also Examples

Description

Changes the order of the dimensions in a given cube

Usage

1
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

Cube

Examples

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

hypercube documentation built on March 26, 2020, 7:52 p.m.