quarter: Find the quarter in which a date occurs

Description Usage Arguments Value Author(s) Examples

Description

Returns the quarter and year in which a date occurs.

Usage

1

Arguments

date

A vector convertible to POSIXlt. A Date or character is fine.

Value

A numeric vector identifying the quarter that each element of date corresponds to, expressed as a number of years since 1900. Thus Q1-2000 is 100.00, and Q3-2007 is 107.50.

Author(s)

Steven L. Scott stevescott@google.com

Examples

1
2
  Quarter(c("2008-02-29", "2008-04-29"))
  # [1] 108.00 108.25


Search within the bsts package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.