Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subsetting would fail when the plotted object has a yearmon index, because the start/end index values are converted to character as the 3-letter month abbreviation and the 4-digit year. That is not a valid ISO-8601 range string, as shown in the example below. x <- apply.monthly(as.xts(sample_matrix[,4]), last) index(x) <- as.yearmon(index(x)) paste(start(x), end(x), sep = "/") [1] "Jan 2007/Jun 2007" Explicitly format the start/end index values as ISO-8601 before combining them into the range string. Fixes #353.
- Loading branch information