is_index: Test if an object is a price index

View source: R/index-class.R

is_indexR Documentation

Test if an object is a price index

Description

Test if an object is a index object or a subclass of an index object.

Usage

is_index(x)

is_chainable_index(x)

is_direct_index(x)

Arguments

x

An object to test.

Value

is_index() returns TRUE if x inherits from piar_index.

is_chainable_index() returns TRUE if x inherits from chainable_piar_index.

is_direct_index() returns TRUE if x inherits from direct_piar_index.


piar documentation built on April 3, 2025, 7:38 p.m.