Skip to content

Instantly share code, notes, and snippets.

@dalejung
Created August 9, 2012 17:27
Show Gist options
  • Save dalejung/3306180 to your computer and use it in GitHub Desktop.
Save dalejung/3306180 to your computer and use it in GitHub Desktop.
# Create a uniform date range.
times = format(as.POSIXct('2002-04-07', tz='GMT') + seq(1, by=1800, length.out=48))
rdf = data.frame(bob=1:48)
rownames(rdf) = times
as.xts(rdf)
# Error in `[.data.frame`(x, indx) : undefined columns selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment