Closed joshuaulrich closed 4 years ago
.xts() will create an xts object with row names if x has rownames. For example:
.xts()
x
m <- matrix(1, dimnames = list("a", "b")) x <- .xts(m, 1) rownames(x) # [1] "a" y <- xts(m, .POSIXct(1)) rownames(y) # NULL
This is a bug because xts objects should never have rownames.
This broke several other unit tests... because I was bad and only ran the one file.
.xts()
will create an xts object with row names ifx
has rownames. For example:This is a bug because xts objects should never have rownames.