remove.selection: Removes selection criteria from a hypercube

Description Usage Arguments Value Author(s) See Also Examples

Description

This function removes all selection criteria for the given dimensions. The cube itself will not be changed. The selection criteria only affect the data that will be shown when printing the cube.

Usage

1
remove.selection(x, dimensions)

Arguments

x

Hypercube for which the selection criteria will be defined.

dimensions

A vector of dimension names for which all selection criteria will be removed.

Value

Returns a Cube object with removed selection criteria.

Author(s)

Michael Scholz michael.scholz@th-deg.de

See Also

Cube add.selection remove.aggregation

Examples

1
2
3
4
5
6
7
8
data("sales")
print(str(sales))
cube = generateCube(sales, columns = list(time = c("month", "year"),
      location = c("state"), product = "product"), valueColumn = "amount")
cube = add.selection(cube, criteria = list(state = c("CA", "FL")))
cube
cube = remove.selection(cube, dimensions = c("state"))
cube

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