[R] Adding Time Series to data.frame without knowing the name of teh time series

From: Paolo Rossi <statmailinglists_at_googlemail.com>
Date: Fri, 15 Apr 2011 15:33:16 +0100


quick question I reckon.

Is there a way to add to time series to a dataframe without knowing their name in advance?

I can figure it out the following but wondered if there is a better way



a = data.frame(i = rep(100, 12))
colnames(a)[length(colnames)] = i

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 15 Apr 2011 - 14:37:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Apr 2011 - 14:40:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive