[R] ask for your help

peter dalgaard pdalgd at gmail.com
Sat Mar 29 10:37:06 CET 2014


On 28 Mar 2014, at 18:09 , KIRA <396884748 at qq.com> wrote:

> Hi R,
>      I am a new Chinese user of R, I like this language very much.In the recent months,I spend over 4 hours every day leanring R,but during the learning I come across some problems I can not understand.For R is still not very popular in China,I ask  some  net friends but nobody can give me a satisfactory answer,so I have to ask for your help. In the package quatmod, getSymbols is a useful tools to fetch datas form the Internet but it often can not work when I use it,such as
> getSymbols("APPL",src="yahoo")  or getSymbols("APPL",from="2007-01-03",to=Sys.Date()) .It should be useful because many books have already shown it ,but   As of 0.4-0, ‘getSymbols’ uses env=parent.frame() and
> auto.assign=TRUE by default.
>  This  behavior  will be  phased out in 0.5-0  when the call  will
> default to use auto.assign=FALSE. getOption("getSymbols.env") and 
> getOptions("getSymbols.auto.assign") are now checked for alternate defaults
>  This message is shown once per session and may be disabled by setting 
> options("getSymbols.warning4.0"=FALSE). See ?getSymbol for more details
> 错误于download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  : 
>  无法打开URL'http://chart.yahoo.com/table.csv?s=APPL&a=0&b=03&c=2007&d=2&e=29&f=2014&g=d&q=q&y=0&z=APPL&x=.csv'
> 此外: 警告信息:
> In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  :
>  无法打开: HTTP状态是'404Not Found'
> I want to know why.Maybe it due to the damn Great Firewall. I hope you can reply to me when convenience. Best ragards.(My English is not fluent, please do not mind)

>                           
It could be, but that particular URL doesn't work for me either when pasted to a browser. 

I believe the ticker for Apple Inc. is AAPL, not APPL.


>                                                                                   A Chinese R  user & lover.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com




More information about the R-help mailing list