Extract and replace index values over a window of time periods.
Arguments
- x
A price index, as made by, e.g.,
elemental_index()
.- start
The time period to start the window. The default in the first period of
x
.- end
The time period to end the window. The default is the last period of
x
.- ...
Not currently used.
- value
A numeric vector or price index.
Value
window()
extracts a price index over a window of time periods that
inherits from the same class as x
. The replacement method replaces these
with value
.
See also
Other index methods:
[.piar_index()
,
aggregate.piar_index
,
as.data.frame.piar_index()
,
chain()
,
contrib()
,
head.piar_index()
,
is.na.piar_index()
,
levels.piar_index()
,
mean.piar_index
,
merge.piar_index()
,
split.piar_index()
,
stack.piar_index()
,
time.piar_index()