[R-SIG-Finance] Error with getSymbols

Joshua Ulrich josh.m.ulrich at gmail.com
Mon Aug 22 22:37:08 CEST 2011


I can't replicate this using R-2.13.1 on Windows XP using quantmod,
xts, and zoo from CRAN or R-Forge.  So it's likely something with your
setup.

Set options(error=recover) and then run the command again.  Step into
the various active function calls and take a look around to see what
the environment looks like right before the error.

HTH,
--
Joshua Ulrich  |  FOSS Trading: www.fosstrading.com



On Mon, Aug 22, 2011 at 3:12 AM, SNV Krishna <krishna at primps.com.sg> wrote:
> Hi,
>
> I am using R 2.13.1, Windows XP OS. I updated all the packages and below is
> the command and output sequence. Any suggestions / idea on whats going
> wrong?
>
>> library(quantmod)
> Loading required package: Defaults
> Loading required package: xts
> Loading required package: zoo
>
> Attaching package: 'zoo'
>
> The following object(s) are masked from 'package:base':
>
>    as.Date
>
> Loading required package: TTR
>
>> getSymbols("PAYEMS", src="FRED")
> Error in as.POSIXlt.character(x, tz, ...) :
>  character string is not in a standard unambiguous format
>
> Thanks and regards,
>
> S.N.V. Krishna
>
>
>  _____
>
> From: Idris Raja [mailto:idris.raja at gmail.com]
> Sent: Sunday, August 21, 2011 12:01 AM
> To: SNV Krishna
> Cc: r-sig-finance at r-project.org
> Subject: Re: [R-SIG-Finance] Error with getSymbols
>
>
> Your code worked for me. Did you load the quantmod package?
> Can you provide more detail like which version of R are you using and your
> operating system.
>
> Idris
>
>> x = require(quantmod)
> Loading required package: quantmod
> Loading required package: Defaults
> Loading required package: xts
> Loading required package: zoo
> Loading required package: TTR
>> x
> [1] TRUE
>> getSymbols("PAYEMS", src="FRED")
> [1] "PAYEMS"
>> head(PAYEMS)
>           PAYEMS
> 1939-01-01  29923
> 1939-02-01  30100
> 1939-03-01  30280
> 1939-04-01  30094
> 1939-05-01  30300
> 1939-06-01  30502
>>
>
> On Thu, Aug 18, 2011 at 8:53 PM, SNV Krishna <krishna at primps.com.sg> wrote:
>
>
> Hi All,
>
> Could some one help me with this error
>
>> getSymbols("PAYEMS",src = "FRED")
> Error in as.POSIXlt.character(x, tz, ...) :
>  character string is not in a standard unambiguous format
>
> I could download a few of other series like 'CCNA' with out error. Being a
> newbie, I could'nt decipher what the error means. Many thanks for the
> guidance and help.
>
> Regards,
>
> S.N.V. Krishna
>
> _______________________________________________
> 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.
>
>
>
>
>        [[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