Learn R Programming

timeseriesdb (version 1.0.0-1.1.2)

date_to_index: 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

Run this code
# NOT RUN {
date_to_index("2020-07-01")
# }

Run the code above in your browser using DataLab