EVOLUTION-MANAGER
Edit File: quarter.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Get the fiscal quarter and semester of a date-time</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for quarter {lubridate}"><tr><td>quarter {lubridate}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get the fiscal quarter and semester of a date-time</h2> <h3>Description</h3> <p>Quarters divide the year into fourths. Semesters divide the year into halfs. </p> <h3>Usage</h3> <pre> quarter(x, with_year = FALSE, fiscal_start = 1) semester(x, with_year = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>a date-time object of class POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, fts or anything else that can be converted with as.POSIXlt</p> </td></tr> <tr valign="top"><td><code>with_year</code></td> <td> <p>logical indicating whether or not to include the quarter's year.</p> </td></tr> <tr valign="top"><td><code>fiscal_start</code></td> <td> <p>numeric indicating the starting month of a fiscal year</p> </td></tr> </table> <h3>Value</h3> <p>numeric </p> <h3>Examples</h3> <pre> x <- ymd(c("2012-03-26", "2012-05-04", "2012-09-23", "2012-12-31")) quarter(x) quarter(x, with_year = TRUE) quarter(x, with_year = TRUE, fiscal_start = 11) semester(x) semester(x, with_year = TRUE) </pre> <hr /><div style="text-align: center;">[Package <em>lubridate</em> version 1.7.9 <a href="00Index.html">Index</a>]</div> </body></html>