Learn R Programming

xts (version 0.14.1)

is.timeBased: Check if Class is Time-Based

Description

Used to verify that the object is one of the known time-based classes in R. Current time-based objects supported are Date, POSIXct, chron, yearmon, yearqtr, and timeDate.

Usage

is.timeBased(x)

timeBased(x)

Value

A logical scalar.

Arguments

x

Object to test.

Author

Jeffrey A. Ryan

Examples

Run this code

timeBased(Sys.time())
timeBased(Sys.Date())

timeBased(200701)

Run the code above in your browser using DataLab