1% File src/library/stats/man/start.Rd
2% Part of the R package, https://www.R-project.org
3% Copyright 1995-2007 R Core Team
4% Distributed under GPL 2 or later
5
6\name{start}
7\title{Encode the Terminal Times of Time Series}
8\usage{
9start(x, \dots)
10end(x, \dots)
11}
12\alias{start}
13\alias{end}
14\arguments{
15    \item{x}{a univariate or multivariate time-series, or a vector or matrix.}
16    \item{\dots}{extra arguments for future methods.}
17}
18\description{
19    Extract and encode the times the first and last observations were
20    taken. Provided only for compatibility with S version 2.
21}
22\details{
23    These are generic functions, which will use the
24    \code{\link{tsp}} attribute of \code{x} if it exists.
25    Their default methods decode the start time from the original time
26    units, so that for a monthly series \code{1995.5} is represented
27    as \code{c(1995, 7)}. For a series of frequency \code{f}, time
28    \code{n+i/f} is presented as \code{c(n, i+1)} (even for \code{i = 0}
29    and \code{f = 1}).
30}
31\section{Warning}{
32    The representation used by \code{start} and \code{end} has no
33    meaning unless the frequency is supplied.
34}
35\seealso{
36  \code{\link{ts}}, \code{\link{time}}, \code{\link{tsp}}.
37}
38\keyword{ts}
39