Closed ggrothendieck closed 1 year ago
I wouldn't expect the getSymbols()
object would be identical()
to the object after it's been written to and then read from a CSV. Objects being identical()
is a very strong assertion. For example, xts objects aren't identical()
if the attribute order is different, which isn't particularly relevant.
That said, the objects aren't all.equal()
either because the attributes are different. But I still don't think this is a problem for most (all?) users. The user in the Stackoverflow question wasn't concerned about whether the objects were identical.
I'm closing this for now, but I'm open to discussing and re-opening.
getSymbols
adds xts attributes which results in the object being different than the same object after writing it out to a csv file and reading it back in. Suggest an argument to omit these or possibly a pseudo-class specified viareturn.class = "xts0"
.