Description Usage Arguments Value Author(s) See Also Examples
This function generates a hypercube from a given dataframe. The dimensions of the hypercube correspond to a set of selected columns from the dataframe.
1 2 3 4 5 6 | generateCube(
data,
columns,
valueColumn,
fun = c("sum", "min", "max", "prod", "mean", "median", "sd", "count")
)
|
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. |
fun |
Aggregation function for aggregating over those columns that do not correspond with any dimension of the hypercube. |
Returns a Cube
object.
Michael Scholz michael.scholz@th-deg.de
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.