[Rd] dimnames usage in ts (PR#1288)

Timothy.Keitt@stonybrook.edu Timothy.Keitt@stonybrook.edu
Wed, 30 Jan 2002 00:14:07 +0100 (MET)

On Tue, 2002-01-29 at 18:01, Peter Dalgaard BSA wrote:
> You had me tempted to fix this for 1.4.1, but
> c) That would be a new feature, out of bounds the day before a
> release. The workaround is trivial anyway:
>    ts(as.matrix(dataframe)) 

Yes; that is what I ended up doing. Another solution is to make 'as.ts'
generic and add:

as.ts.data.frame <- function(x) ts(as.matrix(x))

(My code called 'as.ts' and I think I just forgot that it was not a
generic fuction with a data.frame method.)


Timothy H. Keitt
Department of Ecology and Evolution
State University of New York at Stony Brook
Stony Brook, New York 11794 USA
Phone: 631-632-1101, FAX: 631-632-7626

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