| nseconds | R Documentation |
Calculate the number of specified periods in a given time series like data object.
nseconds(x)
nminutes(x)
nhours(x)
ndays(x)
nweeks(x)
nmonths(x)
nquarters(x)
nyears(x)
x |
A time-based object. |
Essentially a wrapper to endpoints() with the appropriate period
specified. The result is the number of endpoints found.
As a compromise between simplicity and accuracy, the results will always round up to the nearest complete period. Subtract 1 from the result to get the completed periods.
For finer grain detail one should call the higher frequency functions.
An alternative summary can be found with periodicity(x) and
unclass(periodicity(x)).
The number of respective periods in x.
Jeffrey A. Ryan
endpoints()
## Not run:
getSymbols("QQQQ")
ndays(QQQQ)
nweeks(QQQQ)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.