generateCube: Generates a hypercube from a given dataframe

Description Usage Arguments Value Author(s) See Also Examples

Description

This function generates a hypercube from a given dataframe. The dimensions of the hypercube correspond to a set of selected columns from the dataframe.

Usage

1
generateCube(data, columns, valueColumn)

Arguments

data

A dataframe that is used as source for the hypercube.

columns

A vector of column names that will form the dimensions of the hypercube.

valueColumn

The name of the column that provides the values for the cells of the hypercube.

Value

Returns a Cube object.

Author(s)

Michael Scholz [email protected]

See Also

Cube

Examples

1
2
3
data("sales")
cube = generateCube(sales, columns = list(time = c("month", "year"),
      location = c("state"), product = "product"), valueColumn = "amount")

hypercube documentation built on May 2, 2019, 9:41 a.m.