index_valid: Add custom index support for a tsibble

View source: R/index-valid.R

index_validR Documentation

Add custom index support for a tsibble

Description

\lifecycle

stable

S3 method to add an index type support for a tsibble.

Usage

index_valid(x)

Arguments

x

An object of index type supported by tsibble.

Details

This method is primarily used for adding an index type support in as_tsibble.

Value

TRUE/FALSE or NA (unsure)

See Also

interval_pull for obtaining interval for regularly spaced time.

Examples

index_valid(seq(as.Date("2017-01-01"), as.Date("2017-01-10"), by = 1))

tidyverts/tsibble documentation built on Feb. 7, 2024, 5:11 a.m.