Learn R Programming

tsibble (version 1.1.5)

index_valid: Add custom index support for a tsibble

Description

[Stable]

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

Usage

index_valid(x)

Value

TRUE/FALSE or NA (unsure)

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.

See Also

interval_pull for obtaining interval for regularly spaced time.

Examples

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

Run the code above in your browser using DataLab