Description Usage Arguments Note See Also Examples
Return a subperiod time series with the first or last part. The length of the output is specified in terms of the number of observations.
1 2 3 4 5 |
x |
a |
n |
a single integer. If positive, length of the the resulting time series. If negative, all but the |
... |
further arguments passed to or from methods. |
For an evenly spaced time series, the methods head()
and head_t()
(or tail()
and tail_t()
) essentially work the same. For unevenly spaced time series, however, they are quite different. The subperiod window of the former is determined by the observation values, while for the latter it is determined by the observation times.
head_t
, tail_t
, window
for other methods that extract a subperiod time series.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.