[R-SIG-Finance] for help: quantmod library: getSymbols("000002.SS")

Jeff Ryan jeff.a.ryan at gmail.com
Thu Jan 8 06:23:55 CET 2009

Take a look here:


You can either set 'auto.assign=FALSE' in the getSymbols call, and do
the assignment to a variable of your choosing with <-


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.


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

More information about the R-SIG-Finance mailing list