[R] SAS Macro Variable in R
David Young
dyoung at telefonica.net
Tue Jun 23 19:40:10 CEST 2009
Hi I'm new to R and would like to implement a SAS-like macro variable
in R.
What I'd like to do is take the simple R code below and change the
"=TEF" to different letters to refer to different companies' data for
download.
# DOWNLOADS FILES FROM YAHOO INTERNET
download.file('http://ichart.yahoo.com/table.csv?s=TEF.MC&a=00&b=1&c=2003&d=05&e=23&f=2009&g=d&ignore=.csv',
'c:\\projects\\stock data\\data\\test.csv',quiet=TRUE)
As you can see the text I want to change is within the quoted Internet
address. Is this possible in R?
Thanks in advance for any assistance.
--
Best regards,
David Young
Marketing and Statistical Consultant
Madrid, Spain
+34 913 540 381
http://www.linkedin.com/in/europedavidyoung
mailto:dyoung at telefonica.net
More information about the R-help
mailing list