EVOLUTION-MANAGER
Edit File: ndays.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: Number of Periods in Data</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 ndays {xts}"><tr><td>ndays {xts}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Number of Periods in Data </h2> <h3>Description</h3> <p>Calculate the number of specified periods in a given time series like data object. </p> <h3>Usage</h3> <pre> nseconds(x) nminutes(x) nhours(x) ndays(x) nweeks(x) nmonths(x) nquarters(x) nyears(x) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p> A time-based object </p> </td></tr> </table> <h3>Details</h3> <p>Essentially a wrapper to <code>endpoints</code> with the appropriate period specified; the resulting value derived from counting the endpoints </p> <p>As a compromise between simplicity and accuracy, the results will always round up to the nearest complete period. So n**** - 1 will return the completed periods. </p> <p>For finer grain detail one should call a higher frequency n**** function. </p> <p>An alternative summary can be found with <code>periodicity</code> and <code>unclass(periodicity(x))</code>. </p> <h3>Value</h3> <p>The number of observations for the period type specified </p> <h3>Author(s)</h3> <p> Jeffrey A. Ryan </p> <h3>See Also</h3> <p><code><a href="endpoints.html">endpoints</a></code> </p> <h3>Examples</h3> <pre> ## Not run: getSymbols("QQQQ") ndays(QQQQ) nweeks(QQQQ) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>xts</em> version 0.12.2 <a href="00Index.html">Index</a>]</div> </body></html>