Ashutosh Tayshete
2004-Jan-06 01:38 UTC
[R] "Smart update" utility (or coding) for data files
Hi, I am a new user of R and this is my first e-mail here. Please enlighten me on any etiquette issues I may have overstepped on. My questions is as follows: I need to do some data analysis for data from .csv files for stocks (that I have obtained from yahoo) How can I do a "smart update" of this data from Yahoo (or any other site if you wish), so that in some way, I do not have to go and download the new data from Excel every day. I am running my code from a script file. So every time I start the program I'd like the data to be up-to-date (ofcourse I shall be connected to the internet.) Is there a utility I can download for this? If not, any hints on how to code this will be appreciated. many thanks A
Ashutosh Tayshete wrote:> Hi, > > I am a new user of R and this is my first e-mail here. Please enlighten me > on any etiquette issues I may have overstepped on. > > My questions is as follows: > > I need to do some data analysis for data from .csv files for stocks > (that I have obtained from yahoo) > > How can I do a "smart update" of this data from Yahoo (or any other > site if you wish), so that in some way, I do not have to go and download > the new data from Excel every day. > > I am running my code from a script file. So every time I start the program > I'd like the data to be up-to-date (ofcourse I shall be connected to the > internet.) Is there a utility I can download for this? If not, any hints > on how to code this will be appreciated. > > many thanks > A >See ?url for such a connection. Instead of read.csv("filename"), use read.csv(url("TheRelevantURL")) Uwe Ligges