Hi R users: I try with "zone" option in "timeSeries" function, but stills to show "GMT", not the Financial Center, that I try to use: Dear Davin Winsemius: I don't understand what are you saying to me:
So why don't you add something meaningful to your code (... that is not presented in a reproducible manner for testing.)
It is not a "reproducible manner for testing"?
Help me to show it in a accurate way.
Thank you very much..
Reproducible code:
#######################################################
require(timeSeries)
getRmetricsOptions("myFinCenter")
setRmetricsOptions(myFinCenter = "America/Bogota")
getRmetricsOptions("myFinCenter")
fechas <- format(timeCalendar(2010, sample(12, 6)))
datos <- matrix(round(rnorm(6), 3))
t1 <- sort(timeSeries(datos, fechas, units =
"A",zone=getRmetricsOptions("myFinCenter")))
t1
fechas <- format(timeCalendar(2010, sample(12, 6)))
datos <- matrix(round(rnorm(6), 3))
t2 <- sort(timeSeries(datos, fechas, units =
"B",zone=getRmetricsOptions("myFinCenter")))
t2
merge(t1,t2)
cbind(t1,t2)
rbind(t1,t2)
######################################################
El lun, 04-07-2011 a las 22:41 -0400, David Winsemius escribi?:
On Jul 4, 2011, at 6:47 PM, Kenneth Roy Cabrera Torres wrote:
Hi R users: When I try to merge or bind (cbind or rbind) two series, both with a "FinCenter" different that GMT, the result is "GMT" not the original financial center?
It's not in the help(cbind.timeSeries) page but looking at the function (and at the documentation for the timeSeries class) you see that there is a "zone" argument and that it is "GMT" by default. So why don't you add something meaningful to your code (... that is not presented in a reproducible manner for testing.) It is listed in the documentation as zone="", but in the cbind function call, the code is zone="GMT". It appears that the "zone" argument might be for input and the FinCenter might be for output in the help page for timeDate, but I think that aspect of the various parts of the documentation is rather vague and might do with a bit of clarification.