Re: [R] converting dataframe into multiple time series

2014-08-24 Thread jwd
On Sun, 24 Aug 2014 09:52:35 +0900 Bill wrote: > Hello. Can someone suggest how to do this: > > for (i in 2:length(colnames(allvar.df))) { > var=colnames(allvar.df)[i] > timeSeriesName = paste(var,".time.series") > varRef=paste(var,".df$",var) > varDate=paste(var,".df$date") > timeSeriesName <-

Re: [R] converting dataframe into multiple time series

2014-08-24 Thread John McKown
On Aug 23, 2014 7:54 PM, "Bill" wrote: > > Hello. Can someone suggest how to do this: > > for (i in 2:length(colnames(allvar.df))) { > var=colnames(allvar.df)[i] > timeSeriesName = paste(var,".time.series") > varRef=paste(var,".df$",var) > varDate=paste(var,".df$date") > timeSeriesName <- ts(varRe

Re: [R] converting dataframe into multiple time series

2014-08-23 Thread David Winsemius
On Aug 23, 2014, at 5:52 PM, Bill wrote: > Hello. Can someone suggest how to do this: > Do? what? If you are failing with a language that is not your native tongue, then perhaps trying to explain the background and then the goals in English will make the task more understandable, to both

[R] converting dataframe into multiple time series

2014-08-23 Thread Bill
Hello. Can someone suggest how to do this: for (i in 2:length(colnames(allvar.df))) { var=colnames(allvar.df)[i] timeSeriesName = paste(var,".time.series") varRef=paste(var,".df$",var) varDate=paste(var,".df$date") timeSeriesName <- ts(varRef, start = c(year(min(varDate)),month(min(varDate))), end