date_to_index {timeseriesdb}R Documentation

Convert date-likes to time index

Description

Convert date-likes to time index

Usage

date_to_index(x)

Arguments

x

The Date or Y-m-d string to convert

Value

The numeric representation of the date that can be used with ts

Examples

## Not run: date_to_index("2020-07-01")

[Package timeseriesdb version 1.0.0-1.1.2 Index]