getQuote in quantmod malfunctioning

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

getQuote in quantmod malfunctioning

akshay kulkarni
dear members,

               I have a list of stocks by name snlcq2:


 snlcq2 <- c("ICICIBANK.NS"  "IBULHSGFIN.NS" "INDUSINDBK.NS" "INFY.NS"       "KOTAKBANK.NS"  "LTI.NS"        "LT.NS"         "LUPIN.NS"  "M&M.NS"        "M&MFIN.NS"     "NTPC.NS"       "ONGC.NS"       "POWERGRID.NS"  "RELIANCE.NS"   "SBIN.NS"       "SUNPHARMA.NS"  "TCS.NS"        "TATAMOTORS.NS" "TATAMTRDVR.NS" "TATAPOWER.NS"  "TATASTEEL.NS"  "TECHM.NS"      "ULTRACEMCO.NS" "VEDL.NS"  "WIPRO.NS"      "YESBANK.NS"    "UPL.NS"        "ZEEL.NS" )

getQuote(snlcq2)     is not working and is returning the following error:


Error in data.frame(Qposix, sq[, QF]) :
  arguments imply differing number of rows: 2, 9
In addition: Warning message:
In getQuote.yahoo(Symbols = c("ICICIBANK.NS", "IBULHSGFIN.NS", "INDUSINDBK.NS",  :
  symbols have different timezones; converting to local time

However when getQuote is run independently through all stocks of snlcq2, it is working fine...

please help......
very many thanks for your time

yours sincerely,
AKSHAY M KULKARNI


        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.