Learn R Programming

hypercube (version 0.2.1)

sparsity: Calculates the sparsity of a given cube.

Description

Calculates the sparsity of the actual view of a Cube object. All added selections and aggregations will be regarded. Note that selection criteria will be applied before aggregating the data.

Usage

sparsity(x)

Arguments

x

The Cube object for which the sparsity will be computed.

Value

Sparsity value

See Also

importance

Examples

Run this code
# NOT RUN {
data("sales")
cube = generateCube(sales, columns = list(time = c("month", "year"),
      location = c("state"), product = "product"), valueColumn = "amount")
sparsity(cube)

# }

Run the code above in your browser using DataLab