quarter | R Documentation |

Returns the quarter and year in which a date occurs.

Quarter(date)

`date` |
A vector convertible to |

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.

Steven L. Scott steve.the.bayesian@gmail.com

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

bsts documentation built on Nov. 10, 2022, 5:53 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.