
Dear List,


I have two issues using quantmod (no need to confirm how good this package is) to extract data from yahoo finance. 

For the record: R 2.9.2 with REvolution enhancement installed (for that matters...) under Ubuntu 9.10, library quantmod loaded & working
My googling having been unsuccessful till now, I hope I did not miss an obvious post or solution.

1. ticker starting with a number:
> library(quantmod)
> getSymbols("3IN.L",from="2010-02-01")
[1] "3IN.L"
> 3IN.L
Error: unexpected symbol in "3IN.L"

The same appear with other tickers starting with numbers (e.g. ICBC, ticker 1398.HK)
While it functions perfectly with symbols starting with a letter (could not find any starting with letter & containing a number in it to test)

and if one try
> is.xts(3IN.L)
Error: unexpected symbol in "is.xts(3IN.L"

so the xts object does not seem to have been created? 
For information, the same behaviour appear on another computer (R 2.10.1 under macosx 10.5.8)


2. Loading multiple symbols from vector/matrix - accessing data
Assuming I have the following matrix
> ArrTickersPort
     [,1]    
[1,] "3IN.L" 
[2,] "BG.L"  
[3,] "3IN.L" 
[4,] "RBSI.L"
> getSymbols(ArrTickersPort[2,1],from="2010-02-01")
[1] "BG.L"

This functions, so I could (very basically) loop through my matrix of ticker & extract data for each of them
But at this stage, how can I extract the data downloaded by getSymbols in the xts object "BG.L" without actually calling it? i.e. I want to be able to extract te data from the object referencing it by "ArrTickersPort[i,j]"



Many thanks for any feedback / direction on those issues. 


Best regards,
Julien





 		 	   		  
_________________________________________________________________
Hotmail: Vertrauenswürdige E-Mails dank dem leistungsstarken SPAM-Schutz von Microsoft. 

	[[alternative HTML version deleted]]

