Skip to content
Prev 206169 / 398503 Next

Dynamic file / url name with read.csv

A few suggestions:
  Don't mix ' and "
  Use paste()
  Don't include an extraneous ;

SymA<- "SPY"
Sym1<- paste("http://ichart.finance.yahoo.com/table.csv?s=",SymA,"&ignore=.csv",sep="")
Symbol<- read.csv(Sym1, stringsAsFactors=F)
On Jan 12, 2010, at 10:03 PM, B S wrote: