Itβs worth noting that, although you can reference columns by name to generate new objects and columns, ala
xts.object$V1plusV2 <- xts.object[, "V1"] + xts.object[, V2"] ,
You cannot reorder columns by name. The following are not allowed:
xts.reordered <- xts.object[, c("V3, V2, V1")] .
Instead, as Shane pointed out, you will need to reference the columns by number.
source share