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
220 stars 71 forks source link

Support check.names = FALSE in merge.xts() #293

Closed joshuaulrich closed 5 years ago

joshuaulrich commented 5 years ago

merge.xts() does not currently honor check.names = FALSE. This is documented behavior, but it would be nice to have support.

x <- xts::.xts(1:3, 1:3, dimnames = list(NULL, "42"))
y <- xts::.xts(1:3, 1:3, dimnames = list(NULL, "21"))
merge(x, y)                       # leading "X" added
merge(x, y, check.names = TRUE)   # same
merge(x, y, check.names = FALSE)  # should have numeric column names