for help: quantmod library: getSymbols("000002.SS")
Take a look here: http://www.nabble.com/Newbie-question-on-getSymbols%28%29-in-quantmod-tt21226579.html You can either set 'auto.assign=FALSE' in the getSymbols call, and do the assignment to a variable of your choosing with <- -OR- You can use ?setSymbolLookup to names from the source (Yahoo) to R To set auto.assign=FALSE for all future calls you can use setDefaults from the Defaults library (included by quantmod) setDefaults(getSymbols, auto.assign=FALSE) and all future calls will follow that rule. HTH, Jeff
On Wed, Jan 7, 2009 at 11:13 PM, elton wang <ahala2000 at yahoo.com> wrote:
Jeff and all,
How can I use quantmod to download stocks with special characters in names?
for instance, SHA:000002 in Google or 000002.SS in Yahoo, with getSymbols("000002.SS"), the output variable name is illegal in R.
Thanks for your help.
elton
Jeffrey Ryan jeffrey.ryan at insightalgo.com ia: insight algorithmics www.insightalgo.com