r - Order an XTS object -
r - Order an XTS object -
i have xts structure:
variable1 variable2 variable3 2014-06-23 2 1 3
the values these variables ranks. i've ranked them parameter , want show these ranks in tabular way , show past ranks these variables well. in end output should this:
2014-06-23 rank3weeksago rank6weeksago variable2 1 1 2 variable1 2 3 1 variable3 3 2 3
so need original xts sorted ascending , add together necessary columns myself. i'm not able correctly sort xts.
how can this?
my current code transposed view:
originalxts transposed<-t(originalxts)
transposed anyway matrix , variable names index row, cannot access them. i'm struggling here anyway.
r xts
Comments
Post a Comment