[R-SIG-Finance] getSymbol error to download data from FRED

SNV Krishna krishna at primps.com.sg
Fri Jan 20 05:38:59 CET 2012


Hi,

I reinstalled R and it still showing the same error. Any other thoughts
please.

Thanks and Best regards,

S.N.V. Krishna

-----Original Message-----
From: r-sig-finance-bounces at r-project.org
[mailto:r-sig-finance-bounces at r-project.org] On Behalf Of Sankalp Upadhyay
Sent: Thursday, January 19, 2012 11:33 AM
To: r-sig-finance at r-project.org
Subject: Re: [R-SIG-Finance] getSymbol error to download data from FRED

Hi,

It works fine for me. The error that you got suggests that the data file
could not be parsed properly. Maybe a problem with your R installation? Or
internet access from R? Or default format for date?
The data file it downloads from the fred website only has two columns - a
date and a value. Like this:
DATE,VALUE
1919-01-01,4.8502
1919-02-01,4.6358
1919-03-01,4.5019
...

> library(quantmod)
> getSymbols("INDPRO", src = "FRED")
[1] "INDPRO"
> INDPRO
             INDPRO
1919-01-01   4.8502
1919-02-01   4.6358
1919-03-01   4.5019
1919-04-01   4.5822
1919-05-01   4.6090
....

> sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United
States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] quantmod_0.3-17 TTR_0.21-0      xts_0.8-2       zoo_1.7-6
Defaults_1.1-1

loaded via a namespace (and not attached):
[1] grid_2.14.1    lattice_0.20-0 tools_2.14.1


Regards

On Wed, Jan 18, 2012 at 8:35 PM, SNV Krishna <krishna at primps.com.sg> wrote:

> Hi,
>
>
>
> Could anyone help me with the following error. I did post a similar
message
> in the past, but could'nt get the solution.
>
>
>
> > getSymbols("INDPRO", src = "FRED")
>
> Error in as.POSIXlt.character(x, tz, ...) :
>
>  character string is not in a standard unambiguous format
>
>
>
> > sessionInfo()
>
> R version 2.14.0 (2011-10-31)
>
> Platform: i386-pc-mingw32/i386 (32-bit)
>
>
>
> locale:
>
> [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
> States.1252
>
> [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
>
>
> [5] LC_TIME=English_United States.1252
>
>
>
> attached base packages:
>
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
>
>
> other attached packages:
>
> [1] quantmod_0.3-17 TTR_0.21-0      xts_0.8-2       zoo_1.7-6
> Defaults_1.1-1
>
>
>
> loaded via a namespace (and not attached):
>
> [1] grid_2.14.0    lattice_0.20-0 tools_2.14.0
>
>
>
> Thanks in advance for the attention and help
>
>
>
> S.N.V. Krishna
>
>
>
>
>
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>



-- 
--
Sankalp Upadhyay

	[[alternative HTML version deleted]]

_______________________________________________
R-SIG-Finance at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions
should go.



More information about the R-SIG-Finance mailing list