levels.piar_index {piar} | R Documentation |
Get the levels for a price index
Description
Methods to get and set the levels for a price index.
Usage
## S3 method for class 'piar_index'
levels(x)
## S3 replacement method for class 'piar_index'
levels(x) <- value
Arguments
x |
A price index, as made by, e.g., |
value |
A character vector, or something that can be coerced into one,
giving the replacement levels for |
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
.
It's not generally possible to change the levels of an aggregate price index, and in this case replacing the levels does not return an aggregate index.
See Also
Other index methods:
[.piar_index()
,
aggregate.piar_index()
,
as.data.frame.piar_index()
,
chain()
,
contrib()
,
head.piar_index()
,
is.na.piar_index()
,
mean.piar_index()
,
merge.piar_index()
,
split.piar_index()
,
stack.piar_index()
,
time.piar_index()
,
vcov.aggregate_piar_index()