TimeSeriesAnalysis
GetData
obtain raw data from time series
GetDates
obtain dates from time series
GetDateFormat
obtain default date format from time series
GetHeaders
obtain headers from time series
GetPeriod
obtain period from time series
Calling Sequence
Parameters
Examples
Compatibility
GetData(TS, readonly_opt)
GetDates(TS, format_opt)
GetDateFormat(TS)
GetHeaders(TS)
GetPeriod(TS)
TS
-
TimeSeries object
readonly_opt
(optional) equation of the form readonly = true or false
format_opt
(optional) equation of the form format = formatvalue
This command returns a Matrix where each data set in TS occupies one column.
If the keyword readonly is supplied, or the option readonly = true, then the Matrix returned is a read-only alias of the Matrix actually in the TimeSeries object. If the option readonly = false is supplied (the default), then the Matrix returned is a copy of the Matrix TimeSeries object.
This command returns a column Vector of the dates of the TimeSeries object.
By default, the date format stored as the default date format is returned. This date format can be obtained with the GetDateFormat command. A different format can be selected with the format = str option, where str is a string. This string is passed to StringTools[FormatTime]. If str is the string "unformatted", then the dates are returned a Vector of numbers.
This command returns the default formatting string.
This command returns the list of headers of the data sets.
This command returns the period optionally used for seasonal models, as the number of observations per season.
with⁡TimeSeriesAnalysis:
ts≔TimeSeries⁡4,5,6,2,1,2,headers=Monthly sales,Monthly profits,startdate=2013-01-31,frequency=monthly
ts≔Time seriesMonthly sales, Monthly profits3 rows of data:2013-01-31 - 2013-03-31
A copy of the data, and a read-only alias of the data.
GetData⁡ts
4.2.5.1.6.2.
GetData⁡ts,readonly=true
The dates for this time series in various formats.
GetDates⁡ts
2013-01-312013-02-282013-03-31
GetDates⁡ts,format=%D
01/31/1302/28/1303/31/13
GetDates⁡ts,format=unformatted
135959040013620096001364684400
The headers.
GetHeaders⁡ts
Monthly sales,Monthly profits
The period. There are 12 months in a year.
GetPeriod⁡ts
12
The TimeSeriesAnalysis[GetData], TimeSeriesAnalysis[GetDates], TimeSeriesAnalysis[GetDateFormat], TimeSeriesAnalysis[GetHeaders] and TimeSeriesAnalysis[GetPeriod] commands were introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
Statistics[AutoCorrelation]
Statistics[CrossCorrelation]
Download Help Document