Skip to content
Prev 305539 / 398506 Next

calculate within-day correlations

On Fri, Sep 14, 2012 at 6:14 PM, emorway <emorway at usgs.gov> wrote:
This is just how the POSIXct objects are *printed*.  It doesn't affect
how they're actually stored.
I don't know how you created the Q_use object, so I don't know what
the problem is with the above line of code.  This works for me:

Q_hourly$datetime.str <- paste(Q_hourly$date, Q_hourly$time)
fmt <- "%Y%m%d %H%M%S"
x <- xts(Q_hourly["Q"], as.POSIXct(Q_hourly$datetime.str, format=fmt))

Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com