R xts: query both date and time
问题 I can't query xts for subsets including both a date and time range. For example: > head(myxts['2012-01-06 9:30:00/2012-01-06 10:00:00'], 1) Symbol 2012-01-03 09:30:00 "AA" > tail(myxts['2012-01-06 9:30:00/2012-01-06 10:00:00'], 1) Symbol 2012-01-06 10:00:00 "AA" Here the first row is 2012-01-03. Why not 2012-01-06? EDIT I've also tried to extract a single date first to a new variable, then query by time. In this case the date timeseries are extracted correctly but the time subset will not