timeSeries
class represents calendar time series objects in S-PLUS.
All of the slots except the last two,
fiscal.year.start
and
type
,
are inherited from the base
series
class.
ANY
) the variable data, which can be any data object for which
is.rectangular
is
T
, such as a
data.frame
,
matrix
, or
atomic vector.
positions
) the x values for the variables,
which must be of type
positionsCalendar
.
positions
) the starting x value.
positions
) the ending x value.
positions
) future x values used for predictions.
character
) units for the data.
character
) title of the data set.
character
) user-supplied documentation.
ANY
) attributes slot for arbitrary use.
numeric
) month number for fiscal year start.
character
) type of time series.
The
timeSeries
class inherits
series
and
seriesVirtual
. From
series
, it inherits slots which hold x positions and variable data.
A
timeSeries
object is valid only when the lengths of the positions and
data match, the
data
slot is rectangular,
and the
positions
slot holds a
positionsCalendar
object.
Objects of class
timeSeries
can be created using the
new
function, in
which case they are set up to be empty and have their fiscal year starting
in January. Alternatively, they can be created using the
timeSeries
function.
They can be subscripted and used in mathematical operations much
like data frames or matrices.