Applies filter_scale() to one axis and returns a new product.

filter_product(x, axis, frame, unit, ...)

Arguments

x

A ScaleProduct.

axis

Axis to filter.

frame, unit

Passed to filter_scale().

...

Passed to filter_scale().

Value

A ScaleProduct.

Examples

p <- scale_product(a = scale_example(), b = scale_example2())
filter_product(p, "a", "sector", "P")
#> ScaleProduct: <unnamed> 
#> Axes (2):
#>   a : NestedScale 'example[sector:P]'  sector/class/group/unit  atoms 4  key: unit
#>   b : NestedScale 'example2'  era/period  atoms 4  key: period
#> Atoms: 4 x 4 = 16  (not materialised)
#> Coverage: a 32.3% x b 100.0% = 32.3%