Answer by J du Preez for Downloading Yahoo stock prices in R
Maybe give the BatchGetSymbols library a try. What I like about it over quantmod is that you can specify a time period for your data.library(BatchGetSymbols)# set datesfirst.date <- Sys.Date() -...
View ArticleAnswer by Denis Alaev for Downloading Yahoo stock prices in R
Unfortunately, URL "ichart.finance.yahoo.com" is dead and not working now. As I know, Yahoo closed it and it seems it will not be opened.Several days ago I found nice alternative...
View ArticleAnswer by Davis Vaughan for Downloading Yahoo stock prices in R
If your ultimate goal is to get the data.frame of three columns of closing prices, then the new package tidyquant may be better suited for this.library(tidyquant)symbols <- c("MSFT", "C", "VIA/B",...
View ArticleAnswer by Manoj Kumar for Downloading Yahoo stock prices in R
Slightly modified from the above solutions... (thanks Shane and Stotastic) symbols <- c("MSFT", "C", "MMM") # 1. retrieve data for(i in seq_along(symbols)) { URL <-...
View ArticleAnswer by René Bauch for Downloading Yahoo stock prices in R
I do it like this, because I need to have the historic pricelist and a daily update file in order to run other packages:library(fImport)fecha1<-"03/01/2009"fecha2<-"02/02/2010"Sys.time()y <-...
View ArticleAnswer by stotastic for Downloading Yahoo stock prices in R
This also a little late...If you want to grab data with just R's base functions without dealing with any add-on packages, just use the function read.csv(URL), where the URL is a string pointing to the...
View ArticleAnswer by Joshua Ulrich for Downloading Yahoo stock prices in R
I'm a little late to the party, but I think this will be very helpful to other late comers.The stockSymbols function in TTR fetches instrument symbols from nasdaq.com, and adjusts the symbols to be...
View ArticleAnswer by Shane for Downloading Yahoo stock prices in R
Your best bet is to use quantmod and store the results as a time series (in this case, it will be xts):library(quantmod)library(plyr)symbols <- c("MSFT","C","VIA/B","MMM")#1l_ply(symbols,...
View ArticleDownloading Yahoo stock prices in R
This is a newbie question in R. I am downloading yahoo finance monthly stock price data using R where the ticker names are read from a text file. I am using a loop to read the ticker names to download...
View Article
More Pages to Explore .....