"Timothy H. Keitt" <Timothy.Keitt@stonybrook.edu> writes:
On Tue, 2002-01-29 at 15:57, Peter Dalgaard BSA wrote:
Did you actually get bitten by this one?
Yes. (Sorry if that wasn't clear.) In the past, I could create a multivariate time series object by passing a dataframe to the 'ts' or 'as.ts' functions --- that no longer works because 'ts' tries to set the row names to NULL. Unless I'm missing something, the bug is in the 'ts' function.
You had me tempted to fix this for 1.4.1, but a) There's more to it than meets the eye. As I read the code, it cannot possibly have worked to do ts(dataframe) since we changed the internal structure of lists some time in the 0.6x series! The "obvious" fix tickled another bug whose fix tickled another, etc. b) On closer inspection, the docs don't promise that you should be able to do that. "Vector or matrix"... I wouldn't know whether anything would actually be able to work on a data frame with a "tsp" attribute. So the only option would be to insert an automatic conversion to a matrix. c) That would be a new feature, out of bounds the day before a release. The workaround is trivial anyway: ts(as.matrix(dataframe))
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._