Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

timeBased

Check if Class is Time-Based


Description

Used to verify that the object is one of the known time-based classes in R.

Usage

is.timeBased(x)
timeBased(x)

Arguments

x

object to test

Details

Current time-based objects supported are Date, POSIXct, chron, yearmon, yearqtr, and timeDate.

Value

Logical

Author(s)

Jeffrey A. Ryan

Examples

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

timeBased(200701)

xts

eXtensible Time Series

v0.12.1
GPL (>= 2)
Authors
Jeffrey A. Ryan [aut, cph], Joshua M. Ulrich [cre, aut], Ross Bennett [ctb], Corwin Joy [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.