| To: | <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | [Q] Time series data |
| From: | "Tang, Roy Haicheng (Corp Credit - NY)" <RoyHaicheng_Tang@ml.com> |
| Date: | Thu, 21 Apr 2005 11:47:33 -0400 |
| Importance: | normal |
| Thread-index: | AcVGiW6zSmJHR2izR3uJ7MuI7Xe5Bg== |
| Thread-topic: | [Q] Time series data |
|
Hi all, I just started to use time series in Splus and have a couple of questions on timeSeries and seriesMerge. I have some time series data like this: DATE USD1 USD2 USD3
If I read it using
I get a nice timeSeries in Splus in nice form. Each time series has its name (USD1, USD2…) attached. But if I only read 1 time series, say, y1<-timeSeries(DATA1[,2],DATA1[,1]) The column name (or series name) becomes "1". This poses problem when I tried to use mergeSeries to merge multiple time series, some of which have column names and some of them only has "1" as column name (or series name). e.g., if TEST1 is a (multi-variate) time series with proper series names and TEST2,TEST3 are both single time series with "1" as series name, the following command will not work: > TEMP_seriesMerge(TEST1,TEST2,TEST3,pos="union",how="NA")
My question is: how can I add series name to the two series with "1" as series name; or use some other approach to merge the series? Any help is appreciated. Thanks!
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Simple Logic If, then replacement, Richard M. Heiberger |
|---|---|
| Next by Date: | Re: [Q] Time series data, Steve McKinney |
| Previous by Thread: | Re: Simple Logic If, then replacement, Richard M. Heiberger |
| Next by Thread: | Re: [Q] Time series data, Steve McKinney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |