You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following example shows that axTicksByTime does not create a reasonable format for quarterly data when the index class of the xts object is yearqtr.
After discussing with the zoo team, the best solution is to special-case the yearqtr format.
format.yearmon internally coerces to Date and therefore uses the format.Date method. But format.yearqtr tries to provide something better suited for quarters. If "%b" were supported, then you might want to have left-aligned, centered, right-aligned "%b" versions etc. This would be true for all other higher-resolution formats, not just "%b".
Plus, format.yearqtr behaves consistently with other base R format methods, e.g. format.Date:
The fixes in #75 and #77 cause axTicksByTime to throw an error for any
class that doesn't support the indexClass() function. Use inherits() to
check if the index inherits from the yearqtr class.
Fixes#93.
The following example shows that
axTicksByTime
does not create a reasonable format for quarterly data when the index class of the xts object isyearqtr
.This is because
format.yearqtr
does not support the"%b"
format.The text was updated successfully, but these errors were encountered: