Problem with TTR - stockSymbols
Owe,
nasdaq.com changed the format of the file stockSymbols() parses. I've
patched on R-Forge, but have not pushed it to CRAN yet. You can
install TTR from R-Forge via:
R> install.packages("TTR", repos="http://r-forge.r-project.org")
Best,
--
Joshua Ulrich ?| ?FOSS Trading: www.fosstrading.com
On Fri, Aug 12, 2011 at 8:11 AM, Owe Jessen <list at econinfo.de> wrote:
Hi all. I have a problem using stockSymbols from TTR, which is rather
garbled output. Using the example of
require("TTR")
nyse.symbols<- stockSymbols("NYSE")
results in the warning
Fetching NYSE symbols...
Warnmeldung:
In read.table(file = file, header = header, sep = sep, quote = quote, ?:
? cols = 3 != length(data) = 4
I get the following output
head(nyse.symbols)
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Name
1<html xmlns=http://www.w3.org/1999/xhtml>
2<head>
4<meta name=keywords content=company list, nasdaq company list, nyse company list, amex company list />
5<meta name=description content=Use the NASDAQ.com Company List tool to find lists of NASDAQ, NYSE, and AMEX listed securities by name, region, industry and more. />
6<meta name=robots content=index,follow />
7<link rel=canonical href=http://www.nasdaq.com/screening/company-list.aspx />
? Symbol MarketCap Exchange
1 ? ? ? ? ? ? ? ? ? ? ?NYSE
2 ? ? ? ? ? ? ? ? ? ? ?NYSE
4 ? ? ? ? ? ? ? ? ? ? ?NYSE
5 ? ? ? ? ? ? ? ? ? ? ?NYSE
6 ? ? ? ? ? ? ? ? ? ? ?NYSE
7 ? ? ? ? ? ? ? ? ? ? ?NYSE
?str(nyse.symbols)
'data.frame': ? 1437 obs. of ?4 variables: ?$ Name ? ? : chr ?"<html xmlns=http://www.w3.org/1999/xhtml>""<head>""<meta name=keywords content=company list, nasdaq company list, nyse company list, amex company list />""<meta name=description content=Use the NASDAQ.com Company List tool to find lists of NASDAQ, NYSE, and AMEX listed securities b"| __truncated__ ... ?$ Symbol ? : chr ?"" "" "" "" ... ?$ MarketCap: chr ?"" "" "" "" ... ?$ Exchange : chr ?"NYSE" "NYSE" "NYSE" "NYSE" ... Any help would be appreciated. TIA Owe -- Owe Jessen Nettelbeckstr. 5 24105 Kiel post at owejessen.de http://privat.owejessen.de ? ? ? ?[[alternative HTML version deleted]]
_______________________________________________ R-SIG-Finance at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. If you want to post, subscribe first. -- Also note that this is not the r-help list where general R questions should go.