new<-xts(bid[,3:4],order.by=strptime(x=bid$time,format="%Y-%m-%dT%H:%M:%OS")-4*3600)
should work for you (until DST ends.)
Note that bid$time was already character. Always look to see what you are
getting back.
Also, it's considered polite to give the commands you used to get your results
so he
great package, thanks for putting it together. Getting some errors and
wondering if someone could help. Sorry in advance if posting format
#only a few lines with this command
> getEPS("Goog")
Goog.Q.EPS
2012-03-31 8.75
2012-06-30 8.56
2012-09-30 6.47
2012-12-31
Please provide the output of sessionInfo()
For me, with this sessionInfo()
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8
> sessionInfo()
R version 2.15.3 (2013-03-01)
Platform: x86_64-w64-mingw32/x64 (64-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.125
Please update qmao.
With the earnings.com webpage, XML:::readHTMLTable() used to return a
data.frame where the first row was the headers, so getEarnings() and
other functions worked around that by setting the names() to be the
first row, then removing that row. In the current release of XML,
readH
BTW, this Warning (as opposed to error) in getEPS()
Warning message:
In readLines(tmp) :
incomplete final line found on
'C:\Users\BAM\AppData\Local\Temp\RtmpC0laFg\file111060ec69e2'
actually comes from getFinancials(). It's harmless, but could be
avoided if getFinancials() were patched to use
Thanks John. That was really helpful.
On 5/21/2013 8:54 AM, John Laing wrote:
> Nikos,
>
> There is limited date/time functionality built into Rbbg, but the
> conversion you're seeking can be easily achieved using standard R
> tools. You're already converting the data to xts, which has a
> part