Learn R Programming

tsibble (version 0.5.3)

index_valid: Extensible index type to tsibble

Description

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

Usage

index_valid(x)

Arguments

x

An object of index type that the tsibble supports.

Value

TRUE/FALSE or NA (unsure)

Details

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

See Also

pull_interval for obtaining interval for regularly spaced time.

Examples

Run this code
# NOT RUN {
index_valid(seq(as.Date("2017-01-01"), as.Date("2017-01-10"), by = 1))
# }

Run the code above in your browser using DataLab