joshuaulrich / xts

Extensible time series class that provides uniform handling of many R time series classes by extending zoo.
http://joshuaulrich.github.io/xts/
GNU General Public License v2.0
219 stars 71 forks source link

Honor `print.default()`'s `max` argument in `print.xts()` #387

Closed joshuaulrich closed 1 year ago

joshuaulrich commented 1 year ago

print.xts() treats max as the number of rows to print. But in print.default(), max controls how many elements are printed (i.e. rows * columns for objects with dims). At least one dependency set max before dispatching to print.xts().

Need to add a new argument (data.table calls it nrows) and make sure that max takes precedence over the default value of the new argument.