Re: [R] How numerical data is stored inside ts time series objects

2015-04-22 Thread Paul
William Dunlap tibco.com> writes: > I think we can call this a bug in stl(). I used what I learned from the responses to this thread, I looked at the code for stl. As they say in Microsoft, "this is expected behaviour" according to the code. And it doesn't look like an inadvertent coding oversi

Re: [R] How numerical data is stored inside ts time series objects

2015-04-22 Thread David R Forrest
> On Apr 21, 2015, at 9:39 PM, Paul wrote: ... > I rummaged around the help files for str, summary, dput, args. This > seems like a more complicated language than Matlab, VBA, or even C++'s > STL of old (which was pretty thoroughly documented). A function like > str() returns an object descript

Re: [R] How numerical data is stored inside ts time series objects

2015-04-22 Thread Martin Maechler
> Paul > on Wed, 22 Apr 2015 01:39:16 + writes: > William Dunlap tibco.com> writes: >> Use the str() function to see the internal structure of most >> objects. In your case it would show something like: >> >> > Data <- data.frame(theData=round(sin(1:38),1))

Re: [R] How numerical data is stored inside ts time series objects

2015-04-21 Thread William Dunlap
> Interesting that a 2D matrix of size Nx1 is treated as a different > animal from a length N vector. I think we can call this a bug in stl(). Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Apr 21, 2015 at 6:39 PM, Paul wrote: > William Dunlap tibco.com> writes: > > Use the str() functi

Re: [R] How numerical data is stored inside ts time series objects

2015-04-21 Thread Paul
William Dunlap tibco.com> writes: > Use the str() function to see the internal structure of most > objects. In your case it would show something like: > > > Data <- data.frame(theData=round(sin(1:38),1)) > > x <- ts(Data[[1]], frequency=12) # or Data[,1] > > y <- ts(Data, frequency=12) > > str(x)

Re: [R] How numerical data is stored inside ts time series objects

2015-04-20 Thread William Dunlap
Use the str() function to see the internal structure of most objects. In your case it would show something like: > Data <- data.frame(theData=round(sin(1:38),1)) > x <- ts(Data[[1]], frequency=12) # or Data[,1] > y <- ts(Data, frequency=12) > str(x) Time-Series [1:38] from 1 to 4.08: 0.8 0.9 0.1

[R] How numerical data is stored inside ts time series objects

2015-04-20 Thread Paul
I'm getting familiar with the stl function in the stats packcage by trying it on an example from Brockwell & Davis's 2002 "Introduction to Times Series and Forcasting". Specifically, I'm using a subset of his red wine sales data. It's a detour from the stl material at http://www.stat.pitt.edu/sto