GetData - Maple Help

TimeSeriesAnalysis

 GetData
 obtain raw data from time series
 GetDates
 obtain dates from time series
 GetDateFormat
 obtain default date format from time series
 GetPeriod
 obtain period from time series Calling Sequence GetData(TS, readonly_opt) GetDates(TS, format_opt) GetDateFormat(TS) GetHeaders(TS) GetPeriod(TS) Parameters

 TS - TimeSeries object readonly_opt - (optional) equation of the form readonly = true or false format_opt - (optional) equation of the form format = formatvalue GetData

 • This command returns a Matrix where each data set in $\mathrm{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. GetDates

 • 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 $\mathrm{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. GetDateFormat

 • This command returns the default formatting string. • This command returns the list of headers of the data sets. GetPeriod

 • This command returns the period optionally used for seasonal models, as the number of observations per season. Examples

 > $\mathrm{with}\left(\mathrm{TimeSeriesAnalysis}\right):$
 > $\mathrm{ts}≔\mathrm{TimeSeries}\left(\left[\left[4,5,6\right],\left[2,1,2\right]\right],'\mathrm{headers}'=\left["Monthly sales","Monthly profits"\right],'\mathrm{startdate}'="2013-01-31",'\mathrm{frequency}'="monthly"\right)$
 ${\mathrm{ts}}{≔}\left[\begin{array}{c}{\mathrm{Time series}}\\ {\mathrm{Monthly sales, Monthly profits}}\\ {\mathrm{3 rows of data:}}\\ {\mathrm{2013-01-31 - 2013-03-31}}\end{array}\right]$ (1)

A copy of the data, and a read-only alias of the data.

 > $\mathrm{GetData}\left(\mathrm{ts}\right)$
 $\left[\begin{array}{cc}{4.}& {2.}\\ {5.}& {1.}\\ {6.}& {2.}\end{array}\right]$ (2)
 > $\mathrm{GetData}\left(\mathrm{ts},'\mathrm{readonly}'=\mathrm{true}\right)$
 $\left[\begin{array}{cc}{4.}& {2.}\\ {5.}& {1.}\\ {6.}& {2.}\end{array}\right]$ (3)

The dates for this time series in various formats.

 > $\mathrm{GetDates}\left(\mathrm{ts}\right)$
 $\left[\begin{array}{c}{"2013-01-31"}\\ {"2013-02-28"}\\ {"2013-03-31"}\end{array}\right]$ (4)
 > $\mathrm{GetDates}\left(\mathrm{ts},\mathrm{format}="%D"\right)$
 $\left[\begin{array}{c}{"01/31/13"}\\ {"02/28/13"}\\ {"03/31/13"}\end{array}\right]$ (5)
 > $\mathrm{GetDates}\left(\mathrm{ts},\mathrm{format}="unformatted"\right)$
 $\left[\begin{array}{c}{1359590400}\\ {1362009600}\\ {1364684400}\end{array}\right]$ (6)

 > $\mathrm{GetHeaders}\left(\mathrm{ts}\right)$
 $\left[{"Monthly sales"}{,}{"Monthly profits"}\right]$ (7)

The period. There are 12 months in a year.

 > $\mathrm{GetPeriod}\left(\mathrm{ts}\right)$
 ${12}$ (8) Compatibility

 • The TimeSeriesAnalysis[GetData], TimeSeriesAnalysis[GetDates], TimeSeriesAnalysis[GetDateFormat], TimeSeriesAnalysis[GetHeaders] and TimeSeriesAnalysis[GetPeriod] commands were introduced in Maple 18.
{"ft_lang_label":"__label__en","ft_lang_prob":0.61109966,"math_prob":0.99597895,"size":2620,"snap":"2022-40-2023-06","text_gpt3_token_len":659,"char_repetition_ratio":0.15137614,"word_repetition_ratio":0.023391813,"special_character_ratio":0.22671756,"punctuation_ratio":0.12068965,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99569654,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-28T01:23:11Z\",\"WARC-Record-ID\":\"<urn:uuid:f87fd483-75e0-4e5d-a585-8e0ea376a6ac>\",\"Content-Length\":\"237073\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d87742ad-c492-4957-ae40-fe369e5977d3>\",\"WARC-Concurrent-To\":\"<urn:uuid:64fd93de-1299-4c56-9ee9-5faaa8caa241>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://www.maplesoft.com/support/help/addons/view.aspx?path=TimeSeriesAnalysis%2FGetData\",\"WARC-Payload-Digest\":\"sha1:WWWNRHWN7QC3WKSZTOBNOLGKPGYJ2TKP\",\"WARC-Block-Digest\":\"sha1:E5T6NYGVIOZOE5BO2HDRBEUESLRQINW5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499468.22_warc_CC-MAIN-20230127231443-20230128021443-00273.warc.gz\"}"}