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 = c(year(max(varDate)),month(max(varDate))),
frequency=12)
}

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to