Forums  > Software  > R/quantmod and stock tickers starting with a digit (e.g. 1COV.DE)  
     
Page 1 of 1
Display using:  

finanzmaster


Total Posts: 100
Joined: Feb 2011
 
Posted: 2017-03-24 19:44
Hello together, trying to download the historical data for Covestro AG (1COV) I ran

library(quantmod)
getSymbols("1COV.DE")

this will download the data and create an object with name 1COV.DE, however one cannot work with it since the variable's name begins with a digit.

E.g summary(1COV.DE)
will not work

Any ideas how to circumvent this problem?

www.yetanotherquant.com - Knowledge rather than Hope: A Book for Retail Investors and Mathematical Finance Students

Hansi


Total Posts: 294
Joined: Mar 2010
 
Posted: 2017-03-24 20:42
Supply auto.assign = FALSE to getSymbols and assign the return value to a variable instead.

finanzmaster


Total Posts: 100
Joined: Feb 2011
 
Posted: 2017-03-24 21:49
Many thanks, it works!

www.yetanotherquant.com - Knowledge rather than Hope: A Book for Retail Investors and Mathematical Finance Students
Previous Thread :: Next Thread 
Page 1 of 1