Skip to contents

Methods to get and set the levels for a price index.

Usage

# S3 method for piar_index
levels(x)

# S3 method for piar_index
levels(x) <- value

Arguments

x

A price index, as made by, e.g., elemental_index().

value

A character vector, or something that can be coerced into one, giving the replacement levels for x.

Value

levels() returns a character vector with the levels for a price index.

The replacement method returns a copy of x with the levels in value.